Class: Proscenium::Deprecator

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

Instance Method Summary collapse

Instance Method Details

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



40
41
42
43
44
# File 'lib/proscenium.rb', line 40

def deprecation_warning(name, message, _caller_backtrace = nil)
  msg = "`#{name}` is deprecated and will be removed in a near future release of Proscenium"
  msg << " (#{message})" if message
  Kernel.warn msg
end