Module: App::Config::TreatSymbolsAsStrings
- Defined in:
- lib/app/app/config.rb
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
44 45 46 47 48 49 50 51 |
# File 'lib/app/app/config.rb', line 44 def [](key) fetch(key) do case key when Symbol then fetch(key.to_s, nil) when String then fetch(key.to_sym, nil) end end end |