Class: Nuntius::Deprecator

Inherits:
Object
  • Object
show all
Defined in:
lib/nuntius/deprecator.rb

Instance Method Summary collapse

Instance Method Details

#deprecation_warning(deprecated_method_name, message, _caller_backtrace = nil) ⇒ Object



5
6
7
8
# File 'lib/nuntius/deprecator.rb', line 5

def deprecation_warning(deprecated_method_name, message, _caller_backtrace = nil)
  message = "#{deprecated_method_name} is deprecated and will be removed from Nuntius | #{message}"
  Kernel.warn message
end