Sha256: 45f512bd8848a85b7e345e6de1dc9b2c877b6e5249265986366abb282c2e22e1
Contents?: true
Size: 477 Bytes
Versions: 23
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true module Ree::BeanDSL def self.included(base) base.extend(ClassMethods) end def self.extended(base) base.extend(ClassMethods) end module ClassMethods def bean(name, &proc) dsl = Ree::ObjectDsl.new( Ree.container.packages_facade, name, self, :object ) dsl.instance_exec(&proc) if block_given? dsl.object.set_as_compiled(false) Ree.container.compile(dsl.package, name) end end end
Version data entries
23 entries across 23 versions & 1 rubygems