Module: DeprecationCollector::WarningCollector

Defined in:
lib/deprecation_collector/collectors.rb

Overview

taps into ruby core Warning#warn

Instance Method Summary collapse

Instance Method Details

#warn(str) ⇒ Object



111
112
113
114
115
116
# File 'lib/deprecation_collector/collectors.rb', line 111

def warn(str)
  backtrace = caller_locations
  MultipartWarningJoiner.handle(str) do |multi_str|
    DeprecationCollector.collect(multi_str, backtrace, :warning)
  end
end