Method: TCFG::Helper#tcfg_set

Defined in:
lib/tcfg/tcfg_helper.rb

#tcfg_set(key, value) ⇒ Object

to correct way to default configuration is to use tcfg_set

Parameters:

  • key (String)

    the configuration key name

  • value (String, Integer, FixNum, Array, Hash)

    the value of the configuration

Returns:

  • value The same value that was passed in



110
111
112
113
114
# File 'lib/tcfg/tcfg_helper.rb', line 110

def tcfg_set(key, value)
  tier_code_defaults[key] = value
  tcfg_reset
  value
end