Class: Yk::EMap::Iterator
- Inherits:
-
Object
- Object
- Yk::EMap::Iterator
- Defined in:
- for_yard_product.rb
Overview
Iterator class, pointing an element in container
Instance Method Summary collapse
-
#!= ⇒ Object
compare for unequivalence of positions.
-
#==(arg) ⇒ Object
compare for equivalence of positions.
-
#assign(arg) ⇒ EMap::Iterator
assign the positions of argument.
-
#clone ⇒ EMap::Iterator
newly construct a clone iterator.
-
#dec ⇒ EMap::Iterator
decrement the position.
-
#inc ⇒ EMap::Iterator
increment the position.
-
#item ⇒ Array
dereference the iterator, and returns the key object and the value object.
Instance Method Details
#!= ⇒ Object
compare for unequivalence of positions
349 350 |
# File 'for_yard_product.rb', line 349 def != end |
#==(arg) ⇒ Object
compare for equivalence of positions
344 345 |
# File 'for_yard_product.rb', line 344 def == arg end |
#assign(arg) ⇒ EMap::Iterator
assign the positions of argument
339 340 |
# File 'for_yard_product.rb', line 339 def assign arg end |
#clone ⇒ EMap::Iterator
newly construct a clone iterator
324 325 |
# File 'for_yard_product.rb', line 324 def clone end |
#dec ⇒ EMap::Iterator
decrement the position
334 335 |
# File 'for_yard_product.rb', line 334 def dec end |
#inc ⇒ EMap::Iterator
increment the position
329 330 |
# File 'for_yard_product.rb', line 329 def inc end |
#item ⇒ Array
dereference the iterator, and returns the key object and the value object
353 354 |
# File 'for_yard_product.rb', line 353 def item end |