Class Merb::Config::ConfigBlock
In: merb-core/lib/merb-core/config.rb
Parent: Object

Methods

Public Class methods

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<Object~[]=>:The object on which to assign values.
&block:The block which specifies the config values to set.

Returns

nil

:api: private

[Source]

     # File merb-core/lib/merb-core/config.rb, line 468
468:       def initialize(klass, &block)
469:         @klass = klass
470:         instance_eval(&block)
471:       end

Public Instance methods

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

:api: private

[Source]

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

[Validate]