module TableStructure::Schema::DSL::ColumnBuilder

Public Instance Methods

column_builder( name, header: true, body: true, &block ) click to toggle source
# File lib/table_structure/schema/dsl/column_builder.rb, line 7
def column_builder(
  name,
  header: true,
  body: true,
  &block
)
  column_builders[name] =
    ::TableStructure::Utils::TypedProc.new(
      types: { header: !!header, body: !!body }.select { |_k, v| v }.keys,
      &block
    )
  nil
end
Also aliased as: column_converter
column_builders() click to toggle source
# File lib/table_structure/schema/dsl/column_builder.rb, line 21
def column_builders
  @__column_builders__ ||= {}
end
column_converter( name, header: true, body: true, &block )
Alias for: column_builder