Module: Transproc::Deprecations
- Defined in:
- lib/transproc/support/deprecations.rb
Class Method Summary collapse
Class Method Details
.announce(name, msg) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/transproc/support/deprecations.rb', line 5 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 |