Module: Meibo::Builder::BaseBuilder

Instance Method Summary collapse

Instance Method Details

#create(klass) ⇒ Object



6
7
8
9
10
11
# File 'lib/meibo/builder/base_builder.rb', line 6

def create(klass)
  builder_klass = Class.new(klass)
  builder_klass.prepend(self)
  builder_klass.attr_reader(*builder_attribute_names)
  builder_klass
end