Module: Warn::Deprecated

Defined in:
lib/warn/deprecated.rb,
lib/warn/deprecated/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details

#deprecated(old_method, new_method) ⇒ Object



5
6
7
# File 'lib/warn/deprecated.rb', line 5

def deprecated(old_method, new_method)
  warn "warning: method #{old_method} is deprecated. Please use #{new_method}."
end