Module: Ree::BeanDSL::ClassMethods
- Defined in:
- lib/ree/bean_dsl.rb
Instance Method Summary collapse
Instance Method Details
#bean(name, &proc) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ree/bean_dsl.rb', line 14 def bean(name, &proc) dsl = Ree::ObjectDsl.new( Ree.container.packages_facade, name, self, :object ) dsl.instance_exec(&proc) if block_given? dsl.(["object"]) dsl.object.set_as_compiled(false) Ree.container.compile(dsl.package, name) end |