Method: Chop::Create#delete

Defined in:
lib/chop/create.rb

#delete(*keys) ⇒ Object



68
69
70
71
72
73
74
75
# File 'lib/chop/create.rb', line 68

def delete *keys
  transformation do |attributes|
    keys.reduce(attributes) do |attrs, key|
      attributes.delete(key)
      attributes
    end
  end
end