Method: Tablecloth::TableDefinition#mapping
- Defined in:
- lib/tablecloth/table_definition.rb
#mapping ⇒ Object
22 23 24 25 26 |
# File 'lib/tablecloth/table_definition.rb', line 22 def mapping @columns.each_with_object({}) do |(name, column), hash| hash[column.from] = name end end |