Module: DeprecationCollector::KernelWarningCollector
- Defined in:
- lib/deprecation_collector/collectors.rb
Overview
for tapping into Kernel#warn
Class Method Summary collapse
Class Method Details
.warn(*messages, backtrace: nil, **_kwargs) ⇒ Object
123 124 125 126 127 128 |
# File 'lib/deprecation_collector/collectors.rb', line 123 def warn(*, backtrace: nil, **_kwargs) backtrace ||= caller_locations str = .map(&:to_s).join("\n").strip DeprecationCollector.collect(str, backtrace, :kernel) # not passing to `super` - it will pass to Warning#warn, we do not want that end |