Class: Yk::EMSet::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



193
194
# File 'for_yard_product.rb', line 193

def !=
end

#==(arg) ⇒ Object

compare for equivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



188
189
# File 'for_yard_product.rb', line 188

def == arg
end

#assign(arg) ⇒ EMSet::Iterator

assign the positions of argument

Returns:

Raises:

  • ArgumentError raised in case right operand is not compatible



183
184
# File 'for_yard_product.rb', line 183

def assign arg
end

#decEMSet::Iterator

decrement the position

Returns:

Raises:

  • RangeError raised when rewinding over the beginning



178
179
# File 'for_yard_product.rb', line 178

def dec
end

#incEMSet::Iterator

increment the position

Returns:

Raises:

  • RangeError raised when advancing over the end



173
174
# File 'for_yard_product.rb', line 173

def inc
end

#itemObject

dereference the iterator, and returns the pointed object

Returns:

  • (Object)

    The pointed object



197
198
# File 'for_yard_product.rb', line 197

def item
end