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



319
320
# File 'for_yard_product.rb', line 319

def !=
end

#==(arg) ⇒ Object

compare for equivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



314
315
# File 'for_yard_product.rb', line 314

def == arg
end

#assign(arg) ⇒ EMap::Iterator

assign the positions of argument

Returns:

Raises:

  • ArgumentError raised in case right operand is not compatible



309
310
# File 'for_yard_product.rb', line 309

def assign arg
end

#cloneEMap::Iterator

newly construct a clone iterator

Returns:



294
295
# File 'for_yard_product.rb', line 294

def clone
end

#decEMap::Iterator

decrement the position

Returns:

Raises:

  • RangeError raised when rewinding over the beginning



304
305
# File 'for_yard_product.rb', line 304

def dec
end

#incEMap::Iterator

increment the position

Returns:

Raises:

  • RangeError raised when advancing over the end



299
300
# File 'for_yard_product.rb', line 299

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



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

def item
end