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



201
202
# File 'for_yard_product.rb', line 201

def !=
end

#==(arg) ⇒ Object

compare for equivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



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

def == arg
end

#assign(arg) ⇒ EMSet::Iterator

assign the positions of argument

Returns:

Raises:

  • ArgumentError raised in case right operand is not compatible



191
192
# File 'for_yard_product.rb', line 191

def assign arg
end

#cloneEMSet::Iterator

newly construct a clone iterator

Returns:



176
177
# File 'for_yard_product.rb', line 176

def clone
end

#decEMSet::Iterator

decrement the position

Returns:

Raises:

  • RangeError raised when rewinding over the beginning



186
187
# File 'for_yard_product.rb', line 186

def dec
end

#incEMSet::Iterator

increment the position

Returns:

Raises:

  • RangeError raised when advancing over the end



181
182
# File 'for_yard_product.rb', line 181

def inc
end

#itemObject

dereference the iterator, and returns the pointed object

Returns:

  • (Object)

    The pointed object



205
206
# File 'for_yard_product.rb', line 205

def item
end