Method: TableData::CoercingRow#initialize
- Defined in:
- lib/tabledata/coercing_row.rb
#initialize(table, index, data, coercions) ⇒ CoercingRow
Returns a new instance of CoercingRow.
5 6 7 8 |
# File 'lib/tabledata/coercing_row.rb', line 5 def initialize(table, index, data, coercions) @coercions = coercions super(table, index, data.map.with_index { |value, col| coerce(col, value) }) end |