Evaluates the provided block, where any call to a method causes #[]= to be called on klass with the method name as the key and the arguments as the value.
klass<Object~[]=> |
The object on which to assign values. |
&block |
The block which specifies the config values to set. |
nil
:api: private
# File lib/merb-core/config.rb, line 478 def initialize(klass, &block) @klass = klass instance_eval(&block) end
Generated with the Darkfish Rdoc Generator 2.