Method: Chop::Diff#field

Defined in:
lib/chop/diff.rb

#field(key) ⇒ Object



107
108
109
110
111
112
113
# File 'lib/chop/diff.rb', line 107

def field key
  hash_transformation do |hashes|
    hashes.map! do |row|
      row.merge key => yield(row[key])
    end
  end
end