Class: DummyConfig
- Inherits:
-
Object
- Object
- DummyConfig
- Defined in:
- lib/rails/application/dummy_config.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(config) ⇒ DummyConfig
constructor
A new instance of DummyConfig.
- #method_missing(selector) ⇒ Object
- #to_s ⇒ Object
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_s ⇒ Object
8 9 10 |
# File 'lib/rails/application/dummy_config.rb', line 8 def to_s "DummyConfig" end |