Class: Nitpick::Warnings::RescueEverything

Class | Nitpick::Warnings::RescueEverything
In: | lib/nitpick/warnings/rescue_everything.rb
Parent: | SimpleWarning

### Methods

matches? message new

### Public Class methods

new(*args)

[Source]

    # File lib/nitpick/warnings/rescue_everything.rb, line 4
          def initialize(*args)
            @exceptions, @rescue_value = args
          end

### Public Instance methods

matches?()

[Source]

    # File lib/nitpick/warnings/rescue_everything.rb, line 8
          def matches?
            return false unless @exceptions
            [:Object, :Exception].find do |const|
              @exceptions.include? [:const, const]
            end
          end

message()

[Source]

    # File lib/nitpick/warnings/rescue_everything.rb, line 15
          def message
            "A rescue is capturing Object or Exception, which may hide errors."
          end

[Validate]