Method: BinData::SanitizedParameters#warn_replacement_parameter
- Defined in:
- lib/bindata/sanitize.rb
#warn_replacement_parameter(bad_key, suggested_key) ⇒ Object
218 219 220 221 222 223 |
# File 'lib/bindata/sanitize.rb', line 218 def warn_replacement_parameter(bad_key, suggested_key) if has_parameter?(bad_key) Kernel.warn ":#{bad_key} is not used with #{@the_class}. " + "You probably want to change this to :#{suggested_key}" end end |