Class: Engine2::ActionNodeBundle

Inherits:
Object
  • Object
show all
Defined in:
lib/engine2/action_node.rb

Instance Method Summary collapse

Constructor Details

#initialize(node, node_names) ⇒ ActionNodeBundle

Returns a new instance of ActionNodeBundle.



212
213
214
215
# File 'lib/engine2/action_node.rb', line 212

def initialize node, node_names
    @node = node
    @node_names = node_names
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &blk) ⇒ Object



217
218
219
# File 'lib/engine2/action_node.rb', line 217

def method_missing name, *args, &blk
    @node_names.each{|an| @node[an].__send__(name, *args, &blk)}
end