Module: Warning
- Defined in:
- lib/deprecation_toolkit/warning.rb
Overview
Warning is a new feature in ruby 2.5
Instance Method Summary collapse
Instance Method Details
#warn(str) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/deprecation_toolkit/warning.rb', line 15 def warn(str) if DeprecationToolkit::Warning.deprecation_triggered?(str) ActiveSupport::Deprecation.warn(str) else super end end |