Method: FigTree::ConfigStruct#deprecate

Defined in:
lib/fig_tree.rb

#deprecate(old_config, new_config) ⇒ Object

Mark a configuration as deprecated and replaced with the new config.

Parameters:

  • old_config (String)
  • new_config (String)


75
76
77
78
# File 'lib/fig_tree.rb', line 75

def deprecate(old_config, new_config)
  @settings[old_config.to_sym] ||= ConfigValue.new
  @settings[old_config.to_sym].deprecation = new_config
end