Module: Fusu::Configurable::ClassMethods
- Defined in:
- lib/fusu/configurable.rb
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/fusu/configurable.rb', line 26 def config @_config ||= if respond_to?(:superclass) && superclass.respond_to?(:config) superclass.config.inheritable_copy else # create a new "anonymous" class that will host the compiled reader methods Class.new(Configuration).new end end |
#configure {|config| ... } ⇒ Object
35 36 37 |
# File 'lib/fusu/configurable.rb', line 35 def configure yield config end |