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