Class: Yk::EMap::Iterator

Inherits:
Object
  • Object
show all
Defined in:
for_yard_product.rb

Overview

Iterator class, pointing an element in container

Instance Method Summary collapse

Instance Method Details

#!=Object

compare for unequivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



349
350
# File 'for_yard_product.rb', line 349

def !=
end

#==(arg) ⇒ Object

compare for equivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



344
345
# File 'for_yard_product.rb', line 344

def == arg
end

#assign(arg) ⇒ EMap::Iterator

assign the positions of argument

Returns:

Raises:

  • ArgumentError raised in case right operand is not compatible



339
340
# File 'for_yard_product.rb', line 339

def assign arg
end

#cloneEMap::Iterator

newly construct a clone iterator

Returns:



324
325
# File 'for_yard_product.rb', line 324

def clone
end

#decEMap::Iterator

decrement the position

Returns:

Raises:

  • RangeError raised when rewinding over the beginning



334
335
# File 'for_yard_product.rb', line 334

def dec
end

#incEMap::Iterator

increment the position

Returns:

Raises:

  • RangeError raised when advancing over the end



329
330
# File 'for_yard_product.rb', line 329

def inc
end

#itemArray

dereference the iterator, and returns the key object and the value object

Returns:

  • (Array)

    Array of the pointed key object and value object



353
354
# File 'for_yard_product.rb', line 353

def item
end