Class: Nitpick::Warnings::EmptyMethod

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

### Methods

matches? message new

### Attributes

body | [R] |

### Public Class methods

new(*args)

[Source]

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

### Public Instance methods

matches?()

[Source]

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

message()

[Source]

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

[Validate]