Method: Exposure::Building::ClassMethods#build

Defined in:
lib/exposure/behaviors/building.rb

#build(name, options = {}, &block) ⇒ Object



9
10
11
12
# File 'lib/exposure/behaviors/building.rb', line 9

def build(name, options = {}, &block)
  options[:with] ||= block
  self.const_get(:Builders)[name] = options[:with]
end