Method: Chop::Create#copy
- Defined in:
- lib/chop/create.rb
#copy(mappings) ⇒ Object
77 78 79 80 81 82 83 84 |
# File 'lib/chop/create.rb', line 77 def copy mappings transformation do |attributes| mappings.each do |from, to| attributes[to] = attributes[from] end attributes end end |