Module: KKGit::RubyWarnings
- Defined in:
- lib/kk/git/ruby_warnings.rb
Defined Under Namespace
Modules: WarnFilter
Constant Summary collapse
- RDOC_DUP =
/already initialized constant RDoc::|previous definition of .* was here/
Class Method Summary collapse
Class Method Details
.ignore?(message) ⇒ Boolean
26 27 28 29 |
# File 'lib/kk/git/ruby_warnings.rb', line 26 def ignore?() text = .is_a?(Exception) ? . : .to_s text.match?(RDOC_DUP) end |
.install! ⇒ Object
19 20 21 22 23 24 |
# File 'lib/kk/git/ruby_warnings.rb', line 19 def install! return if @installed @installed = true Kernel.singleton_class.prepend(WarnFilter) end |