Method: Axiom::Relation::Operation::Reverse#each

Defined in:
lib/axiom/relation/operation/reverse.rb

#each {|tuple| ... } ⇒ self

Iterate over each tuple in the set

Examples:

reverse = Reverse.new(operand)
reverse.each { |tuple| ... }

Yields:

  • (tuple)

Yield Parameters:

  • tuple (Tuple)

    each tuple in the set

Returns:

  • (self)


57
58
59
60
61
# File 'lib/axiom/relation/operation/reverse.rb', line 57

def each
  return to_enum unless block_given?
  operand.reverse_each { |tuple| yield tuple }
  self
end