class TPPlus::Nodes::VarMethodNode

Attributes

identifier[R]

Public Class Methods

new(identifier, method) click to toggle source
# File lib/tp_plus/nodes/var_method_node.rb, line 5
def initialize(identifier, method)
  @identifier = identifier
  @method = method || {}
end

Public Instance Methods

eval(context,options={}) click to toggle source
# File lib/tp_plus/nodes/var_method_node.rb, line 18
def eval(context,options={})
  node(context).eval(context,options.merge(@method))
end
node(context) click to toggle source
# File lib/tp_plus/nodes/var_method_node.rb, line 14
def node(context)
  context.get_var(@identifier)
end
requires_mixed_logic?(context) click to toggle source
# File lib/tp_plus/nodes/var_method_node.rb, line 10
def requires_mixed_logic?(context)
  node(context).requires_mixed_logic?(context)
end