Method: Axiom::Algebra::Rename::Aliases#each

Defined in:
lib/axiom/algebra/rename/aliases.rb

#each {|old, new| ... } ⇒ self

Iterate over each old and new attribute

Examples:

aliases = Aliases.new(old => new)
aliases.each { |old, new| ... }

Yields:

Yield Parameters:

  • old_attribute (Attribute)

    the old attribute

  • new_attribute (Attribute)

    the new attribute

Returns:

  • (self)


119
120
121
122
123
# File 'lib/axiom/algebra/rename/aliases.rb', line 119

def each
  return to_enum unless block_given?
  @aliases.each { |old_attribute, new_attribute| yield old_attribute, new_attribute }
  self
end