Class: Nitpick::MethodNitpicker

Class | Nitpick::MethodNitpicker
In: | lib/nitpick/method_nitpicker.rb
Parent: | Nitpicker

### Methods

process_defn

### Public Instance methods

process_defn(exp)

[Source]

    # File lib/nitpick/method_nitpicker.rb, line 3
        def process_defn(exp)
          # def foo(x); 1 end =>
          #   [:defn, :foo, [:scope, [:block, [:args, :x], [:lit, 1]]]]
          name, (_scope, (_block, (_argsym, *args), body)) = exp

          scan_for [Warnings::EmptyMethod],
               :with => [name, args, body]

          super
        end

[Validate]