Class: Object

Inherits:
BasicObject
Defined in:
lib/jirametrics/exporter.rb

Instance Method Summary collapse

Instance Method Details

#deprecated(message:, date:) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/jirametrics/exporter.rb', line 6

def deprecated message:, date:
  text = +''
  text << "Deprecated(#{date}): "
  text << message
  caller(1..2).each do |line|
    text << "\n-> Called from #{line}"
  end
  warn text
end