Class: Trestle::Scopes::Block::Evaluator
- Inherits:
-
Object
- Object
- Trestle::Scopes::Block::Evaluator
- Includes:
- EvaluationContext
- Defined in:
- lib/trestle/scopes/block.rb
Instance Attribute Summary collapse
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
Instance Method Summary collapse
-
#initialize(context = nil, defaults = {}) ⇒ Evaluator
constructor
A new instance of Evaluator.
- #scope(name, scope = nil, options = {}, &block) ⇒ Object
Methods included from EvaluationContext
Constructor Details
#initialize(context = nil, defaults = {}) ⇒ Evaluator
Returns a new instance of Evaluator.
23 24 25 26 |
# File 'lib/trestle/scopes/block.rb', line 23 def initialize(context=nil, defaults={}) @context, @defaults = context, defaults @scopes = [] end |
Instance Attribute Details
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
21 22 23 |
# File 'lib/trestle/scopes/block.rb', line 21 def scopes @scopes end |