Class: Merb::Config::ConfigBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/merb-core/config.rb

Overview

class << self

Instance Method Summary collapse

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