Class Nitpick::RescueNitpicker
In: lib/nitpick/rescue_nitpicker.rb
Parent: Nitpicker

Methods

Public Instance methods

[Source]

# File lib/nitpick/rescue_nitpicker.rb, line 3
    def process_resbody(exp)
      exceptions = exp.shift
      rescue_value = exp.shift
      
      scan_for [Warnings::RescueValue, Warnings::RescueEverything],
           :with => [exceptions, rescue_value]
      
      exp.clear

      s(:resbody, exceptions, rescue_value)
    end

[Validate]