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
319 320 |
# File 'for_yard_product.rb', line 319 def != end |
#==(arg) ⇒ Object
compare for equivalence of positions
314 315 |
# File 'for_yard_product.rb', line 314 def == arg end |
#assign(arg) ⇒ EMap::Iterator
assign the positions of argument
309 310 |
# File 'for_yard_product.rb', line 309 def assign arg end |
#clone ⇒ EMap::Iterator
newly construct a clone iterator
294 295 |
# File 'for_yard_product.rb', line 294 def clone end |
#dec ⇒ EMap::Iterator
decrement the position
304 305 |
# File 'for_yard_product.rb', line 304 def dec end |
#inc ⇒ EMap::Iterator
increment the position
299 300 |
# File 'for_yard_product.rb', line 299 def inc end |
#item ⇒ Array
dereference the iterator, and returns the key object and the value object
323 324 |
# File 'for_yard_product.rb', line 323 def item end |