Class Nitpick::Warnings::EmptyMethod
In: lib/nitpick/warnings/empty_method.rb
Parent: SimpleWarning

Methods

matches?   message   new  

Attributes

body  [R] 

Public Class methods

[Source]

# File lib/nitpick/warnings/empty_method.rb, line 6
      def initialize(*args)
        @name, @args, @body = args
      end

Public Instance methods

[Source]

# File lib/nitpick/warnings/empty_method.rb, line 10
      def matches?
        @body == [:nil]
      end

[Source]

# File lib/nitpick/warnings/empty_method.rb, line 14
      def message
        "The method #{@name.inspect} is empty."
      end

[Validate]