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