Module: Cockroach::Base::NodeStructure

Included in:
Node, FactoryGirl::Profiler
Defined in:
lib/cockroach/base/node_structure.rb

Overview

Simple idea. After that the nodes will be available as

Cockroach::FactoryGirl::Node['top_node']['sub_mode']['sub_sub_node']

Instance Method Summary collapse

Instance Method Details

#[](name) ⇒ Object



6
7
8
# File 'lib/cockroach/base/node_structure.rb', line 6

def [](name)
  (@nodes ||= {})[name.to_s]
end