Method: Totoro::Config#initialize
- Defined in:
- lib/totoro/config.rb
#initialize(prefix = nil) ⇒ Config
Returns a new instance of Config.
5 6 7 8 |
# File 'lib/totoro/config.rb', line 5 def initialize(prefix = nil) @data = Rails.application.config_for(:totoro).with_indifferent_access @data = @data[prefix] if prefix.present? end |