Module: TableStructure::Schema::Column::Factory
- Defined in:
- lib/table_structure/schema/column/factory.rb
Class Method Summary collapse
Class Method Details
.create(name, definitions, context, options) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/table_structure/schema/column/factory.rb', line 7 def self.create(name, definitions, context, ) Definition::Compiler .new(name, definitions, ) .compile(context) .map do |definition| if definition.is_a?(Hash) Attrs.new(**definition) else Schema.new(definition) end end end |