Module: Kernel
- Defined in:
- lib/deprecation_toolkit/warning.rb
Instance Method Summary collapse
Instance Method Details
#__original_warn ⇒ Object
28 |
# File 'lib/deprecation_toolkit/warning.rb', line 28 alias_method :__original_warn, :warn |
#warn(*messages) ⇒ Object
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/deprecation_toolkit/warning.rb', line 30 def warn(*) = .join("\n") += "\n" unless .end_with?("\n") if DeprecationToolkit::Warning.deprecation_triggered?() ActiveSupport::Deprecation.warn() else __original_warn() end end |