Class: Strobe::Middleware::Addons::Config
- Inherits:
-
Object
- Object
- Strobe::Middleware::Addons::Config
- Defined in:
- lib/strobe/middleware/addons.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(config, settings) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(config, settings) ⇒ Config
Returns a new instance of Config.
7 8 9 |
# File 'lib/strobe/middleware/addons.rb', line 7 def initialize(config, settings) @config, @settings = config || {}, settings || {} end |
Instance Method Details
#[](key) ⇒ Object
11 12 13 |
# File 'lib/strobe/middleware/addons.rb', line 11 def [](key) @config[key] || @settings[key] end |