Class: DummyConfig

Inherits:
Object
  • Object
show all
Defined in:
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 '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) ⇒ Object



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

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

Instance Method Details

#to_sObject



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

def to_s
  "DummyConfig"
end