Method: Configatron::Store#retrieve

Defined in:
lib/gems/configatron-2.2.2/lib/configatron/store.rb

#retrieve(name, default_value = nil) ⇒ Object

Retrieves a certain parameter and if that parameter doesn’t exist it will return the default_value specified.



76
77
78
# File 'lib/gems/configatron-2.2.2/lib/configatron/store.rb', line 76

def retrieve(name, default_value = nil)
  @_store[name.to_sym] || default_value
end