Method: Honeybadger::Config#get

Defined in:
lib/honeybadger/config.rb

#get(key) ⇒ Object Also known as: []

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

[View source]

117
118
119
120
121
122
123
124
125
126
# File 'lib/honeybadger/config.rb', line 117

def get(key)
  IVARS.each do |var|
    source = instance_variable_get(var)
    if source.has_key?(key)
      return source[key]
    end
  end

  DEFAULTS[key]
end