Class: TableStructure::Schema::ContextBuildable

Inherits:
Module
  • Object
show all
Defined in:
lib/table_structure/schema/context_builders.rb

Instance Method Summary collapse

Constructor Details

#initialize(methods) ⇒ ContextBuildable

Returns a new instance of ContextBuildable.



48
49
50
51
52
# File 'lib/table_structure/schema/context_builders.rb', line 48

def initialize(methods)
  methods.each do |name, method|
    define_method(name, &method)
  end
end