Module: TableStructure::Schema::DSL::ContextBuilder

Defined in:
lib/table_structure/schema/dsl/context_builder.rb

Instance Method Summary collapse

Instance Method Details

#context_builder(name, callable) ⇒ Object



7
8
9
10
# File 'lib/table_structure/schema/dsl/context_builder.rb', line 7

def context_builder(name, callable)
  context_builders[name] = callable
  nil
end

#context_buildersObject



12
13
14
# File 'lib/table_structure/schema/dsl/context_builder.rb', line 12

def context_builders
  @table_structure_schema_context_builders__ ||= Hash.new(->(val) { val })
end