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



307
308
# File 'for_yard_product.rb', line 307

def !=
end

#==(arg) ⇒ Object

compare for equivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



302
303
# File 'for_yard_product.rb', line 302

def == arg
end

#assign(arg) ⇒ EMap::Iterator

assign the positions of argument

Returns:

Raises:

  • ArgumentError raised in case right operand is not compatible



297
298
# File 'for_yard_product.rb', line 297

def assign arg
end

#decEMap::Iterator

decrement the position

Returns:

Raises:

  • RangeError raised when rewinding over the beginning



292
293
# File 'for_yard_product.rb', line 292

def dec
end

#incEMap::Iterator

increment the position

Returns:

Raises:

  • RangeError raised when advancing over the end



287
288
# File 'for_yard_product.rb', line 287

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



311
312
# File 'for_yard_product.rb', line 311

def item
end