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, = {}, &block) [:with] ||= block self.const_get(:Builders)[name] = [:with] end |