Parent

Class Index [+]

Quicksearch

Merb::Config::ConfigBlock

Public Class Methods

new(klass, &block) click to toggle source

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.

Parameters

klass

The object on which to assign values.

&block

The block which specifies the config values to set.

Returns

nil

:api: private

     # File lib/merb-core/config.rb, line 478
478:       def initialize(klass, &block)
479:         @klass = klass
480:         instance_eval(&block)
481:       end

Public Instance Methods

method_missing(method, *args) click to toggle source

Assign args as the value of the entry keyed by method.

:api: private

     # File lib/merb-core/config.rb, line 486
486:       def method_missing(method, *args)
487:         @klass[method] = *args
488:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.