Class: Strobe::Middleware::Addons::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/strobe/middleware/addons.rb

Instance Method Summary collapse

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