Class: Engine2::ActionNodeBundle
Instance Method Summary collapse
-
#initialize(node, node_names) ⇒ ActionNodeBundle
constructor
A new instance of ActionNodeBundle.
- #method_missing(name, *args, &blk) ⇒ Object
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 |