Class: L43Rmap::Evaluator
- Inherits:
-
Object
- Object
- L43Rmap::Evaluator
- Defined in:
- lib/l43_rmap/evaluator.rb,
lib/l43_rmap/evaluator/evaluations.rb
Defined Under Namespace
Modules: Evaluations
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#fun ⇒ Object
readonly
Returns the value of attribute fun.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
7 8 9 |
# File 'lib/l43_rmap/evaluator.rb', line 7 def args @args end |
#fun ⇒ Object (readonly)
Returns the value of attribute fun.
7 8 9 |
# File 'lib/l43_rmap/evaluator.rb', line 7 def fun @fun end |
Instance Method Details
#call(rt) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/l43_rmap/evaluator.rb', line 9 def call(rt) #TODO: extract evaluate real_args = args.map do |arg| arg.(rt) end # p(real_args:) fun.(rt, *real_args) end |
#image ⇒ Object
17 |
# File 'lib/l43_rmap/evaluator.rb', line 17 def image = "Evaluator #{fun.name}" |