Class: Tool::WarningFilter

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

Overview

Enables Ruby’s built-in warnings (-w) but filters out those caused by third-party gems. Does not invlove any manual set up.

Examples:

require 'tool/warning_filter'
Foo = 10
Foo = 20