Module: Transproc::Deprecations

Defined in:
lib/transproc/support/deprecations.rb

Class Method Summary collapse

Class Method Details

.announce(name, msg) ⇒ Object


3
4
5
6
7
8
9
# File 'lib/transproc/support/deprecations.rb', line 3

def self.announce(name, msg)
  warn <<-MSG.gsub(%r{^\s+}, '')
    #{name} is deprecated and will be removed in 1.0.0.
    #{msg}
    #{caller.detect { |l| !l.include?('lib/transproc') } }
  MSG
end