Module: DeprecationToolkit::WarningPatch
- Included in:
- DeprecationToolkit
- Defined in:
- lib/deprecation_toolkit/warning.rb
Instance Method Summary collapse
Instance Method Details
#warn(str) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/deprecation_toolkit/warning.rb', line 53 def warn(str, *) if Configuration.warnings_treated_as_deprecation.empty? return super end str = DeprecationToolkit::Warning.handle_multipart(str) return unless str if DeprecationToolkit::Warning.deprecation_triggered?(str) DeprecationToolkit::Warning.deprecator.warn(str) else super end end |