Class: Merb::Config::ConfigBlock
Overview
class << self
Instance Method Summary collapse
-
#initialize(klass, &block) ⇒ ConfigBlock
constructor
A new instance of ConfigBlock.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(klass, &block) ⇒ ConfigBlock
Returns a new instance of ConfigBlock.
290 291 292 293 |
# File 'lib/merb-core/config.rb', line 290 def initialize(klass, &block) @klass = klass instance_eval(&block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
295 296 297 |
# File 'lib/merb-core/config.rb', line 295 def method_missing(method, *args) @klass[method] = *args end |