Method: Jschematic::Composite#each
- Defined in:
- lib/jschematic/composite.rb
#each(&block) ⇒ Object
17 18 19 20 |
# File 'lib/jschematic/composite.rb', line 17 def each(&block) block.call(self) children.each{ |child| child.each(&block) } end |