Class: EsiAttributeLanguage::MethodNode
- Defined in:
- lib/esi_attribute_language.rb
Instance Method Summary collapse
- #execute(context) ⇒ Object
-
#initialize(receiver, op, *args) ⇒ MethodNode
constructor
A new instance of MethodNode.
Methods inherited from Node
cleanse_string, #result, #result_single
Constructor Details
#initialize(receiver, op, *args) ⇒ MethodNode
Returns a new instance of MethodNode.
83 84 85 86 87 |
# File 'lib/esi_attribute_language.rb', line 83 def initialize(receiver, op, *args) @receiver = receiver @op = op @args = args end |
Instance Method Details
#execute(context) ⇒ Object
89 90 91 |
# File 'lib/esi_attribute_language.rb', line 89 def execute(context) result(@receiver, context).send(@op, *result(@args, context)) end |