lib/rubocop/rubycw/warning_capturer.rb in rubocop-rubycw-0.1.1 vs lib/rubocop/rubycw/warning_capturer.rb in rubocop-rubycw-0.1.2

- old
+ new

@@ -2,13 +2,11 @@ module RuboCop module Rubycw module WarningCapturer if defined?(RubyVM::AbstractSyntaxTree) - require 'stringio' - module ::Warning - def warn(*message) + def self.warn(*message) if WarningCapturer.warnings WarningCapturer.warnings.concat message else super end