Class: Support::WarningFilter

Inherits:
IO
  • Object
show all
Defined in:
lib/warning_filter.rb

Instance Method Summary collapse

Instance Method Details

#from_third_party?(line) ⇒ Boolean



9
10
11
12
13
# File 'lib/warning_filter.rb', line 9

def from_third_party?(line)
  Gem.path.each do |gem_path|
    return true if line.include?(gem_path)
  end
end

#write(line) ⇒ Object



5
6
7
# File 'lib/warning_filter.rb', line 5

def write(line)
  super unless from_third_party?(line)
end