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(admin, context = nil) ⇒ Evaluator
constructor
A new instance of Evaluator.
- #scope(name, scope = nil, options = {}, &block) ⇒ Object
Constructor Details
#initialize(admin, context = nil) ⇒ Evaluator
Returns a new instance of Evaluator.
22 23 24 25 |
# File 'lib/trestle/scopes/block.rb', line 22 def initialize(admin, context=nil) @admin, @context = admin, context @scopes = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Trestle::EvaluationContext
Instance Attribute Details
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
20 21 22 |
# File 'lib/trestle/scopes/block.rb', line 20 def scopes @scopes end |