Class: DummyConfig

Inherits:
Object show all
Defined in:
railties/lib/rails/application/dummy_config.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ DummyConfig

Returns a new instance of DummyConfig.



4
5
6
# File 'railties/lib/rails/application/dummy_config.rb', line 4

def initialize(config)
  @config = config
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(selector, *args, &blk) ⇒ Object



12
13
14
15
16
17
18
# File 'railties/lib/rails/application/dummy_config.rb', line 12

def method_missing(selector, *args, &blk)
  if @config.respond_to?(selector)
    @config.send(selector, *args, &blk)
  else
    self
  end
end

Instance Method Details

#to_sObject



8
9
10
# File 'railties/lib/rails/application/dummy_config.rb', line 8

def to_s
  "DummyConfig"
end