Class: WLang::Scope::ProcScope
- Inherits:
-
WLang::Scope
- Object
- WLang::Scope
- WLang::Scope::ProcScope
- Defined in:
- lib/wlang/scope/proc_scope.rb
Instance Attribute Summary
Attributes inherited from WLang::Scope
Instance Method Summary collapse
Methods inherited from WLang::Scope
chain, coerce, #evaluate, #initialize, null, #pop, #push, #root, #subjects, #with
Constructor Details
This class inherits a constructor from WLang::Scope
Instance Method Details
#fetch(key, dialect = nil, unfound = nil) ⇒ Object
5 6 7 8 9 |
# File 'lib/wlang/scope/proc_scope.rb', line 5 def fetch(key, dialect = nil, unfound = nil) scoped = Scope.coerce(subject.call) fallbk = lambda{ safe_parent.fetch(key, dialect, unfound) } scoped.fetch(key, dialect, fallbk) end |
#inspect ⇒ Object Also known as: to_s
11 12 13 |
# File 'lib/wlang/scope/proc_scope.rb', line 11 def inspect subject.inspect end |