Class: Directive::Evaluator
- Inherits:
-
Object
- Object
- Directive::Evaluator
- Defined in:
- lib/directive/evaluator.rb
Instance Method Summary collapse
-
#initialize(path, configuration) ⇒ Evaluator
constructor
A new instance of Evaluator.
- #read ⇒ Object
Constructor Details
#initialize(path, configuration) ⇒ Evaluator
Returns a new instance of Evaluator.
7 8 9 10 |
# File 'lib/directive/evaluator.rb', line 7 def initialize(path, configuration) @path = path @configuration = configuration end |
Instance Method Details
#read ⇒ Object
12 13 14 |
# File 'lib/directive/evaluator.rb', line 12 def read path.inject(configuration, &:public_send) end |