Class: TreeMap::BoundedMap::BoundedNodeIterator
- Inherits:
-
NodeIterator
- Object
- NodeIterator
- TreeMap::BoundedMap::BoundedNodeIterator
- Defined in:
- lib/tree_map/bounded_map.rb
Overview
in-order traversal of nodes in tree
Instance Method Summary collapse
-
#initialize(bounded_map, next_node) ⇒ BoundedNodeIterator
constructor
A new instance of BoundedNodeIterator.
- #step_backward ⇒ Object
- #step_forward ⇒ Object
Methods inherited from NodeIterator
Constructor Details
#initialize(bounded_map, next_node) ⇒ BoundedNodeIterator
Returns a new instance of BoundedNodeIterator.
340 341 342 343 |
# File 'lib/tree_map/bounded_map.rb', line 340 def initialize(bounded_map, next_node) super(next_node) @bounded_map = bounded_map end |