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



98
99
# File 'for_yard_product.rb', line 98

def !=
end

#==(arg) ⇒ Object

compare for equivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



93
94
# File 'for_yard_product.rb', line 93

def == arg
end

#assign(arg) ⇒ ESet::Iterator

assign the positions of argument

Returns:

Raises:

  • ArgumentError raised in case right operand is not compatible



88
89
# File 'for_yard_product.rb', line 88

def assign arg
end

#cloneESet::Iterator

newly construct a clone iterator

Returns:



73
74
# File 'for_yard_product.rb', line 73

def clone
end

#decESet::Iterator

decrement the position

Returns:

Raises:

  • RangeError raised when rewinding over the beginning



83
84
# File 'for_yard_product.rb', line 83

def dec
end

#incESet::Iterator

increment the position

Returns:

Raises:

  • RangeError raised when advancing over the end



78
79
# File 'for_yard_product.rb', line 78

def inc
end

#itemObject

dereference the iterator, and returns the pointed object

Returns:

  • (Object)

    The pointed object



102
103
# File 'for_yard_product.rb', line 102

def item
end