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 "\#{name} is deprecated and will be removed in 1.0.0.\n\#{msg}\n\#{caller.detect { |l| !l.include?('lib/transproc') } }\n".gsub(%r{^\s+}, '') end |