Method: Proteus::InstanceProxy#next_child
- Defined in:
- lib/InstanceProxy.rb
#next_child ⇒ Object
Returns the next child, or nil.
84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/InstanceProxy.rb', line 84 def next_child if @_last_child_index.nil? @last_child = nil @_last_child_index = 0 return renderer.render( children[0] ) end @last_child = children[ @_last_child_index ] @_last_child_index += 1 return renderer.render( children[ @_last_child_index ] ) end |