Method: Innate::Node.setup
- Defined in:
- lib/innate/node.rb
.setup ⇒ Object
node mapping procedure
when Node is included into an object, it’s added to NODE_LIST when object::map(location) is sent, it maps the object into DynaMap when Innate.start is issued, it calls Node::setup Node::setup iterates NODE_LIST and maps all objects not in DynaMap by using Node::generate_mapping(object.name) as location
when object::map(nil) is sent, the object will be skipped in Node::setup
85 86 87 88 89 |
# File 'lib/innate/node.rb', line 85 def self.setup NODE_LIST.each{|node| node.map(generate_mapping(node.name)) unless node.trait[:skip_node_map] } end |