Module: TableStructure::Schema::RowBuilder
- Defined in:
- lib/table_structure/schema/row_builder.rb
Constant Summary collapse
- DEFAULT_ROW_BUILDERS =
{ _to_hash_: Definition::RowBuilder.new( lambda { |values, keys, *| keys.map.with_index { |key, i| [key || i, values[i]] }.to_h }, enabled_row_types: [:hash] ) }.freeze
Class Method Summary collapse
Class Method Details
.prepend_default_builders(builders) ⇒ Object
16 17 18 |
# File 'lib/table_structure/schema/row_builder.rb', line 16 def prepend_default_builders(builders) DEFAULT_ROW_BUILDERS.merge(builders) end |