Class: Nitpick::Warnings::UnusedVariable

Class | Nitpick::Warnings::UnusedVariable
In: | lib/nitpick/warnings/unused_variable.rb
Parent: | SimpleWarning

### Methods

== message new

### Attributes

variable | [R] |

### Public Class methods

new(variable)

[Source]

    # File lib/nitpick/warnings/unused_variable.rb, line 6
          def initialize(variable)
            @variable = variable
          end

### Public Instance methods

==(other)

[Source]

    # File lib/nitpick/warnings/unused_variable.rb, line 10
          def ==(other)
            other.is_a?(self.class) && @variable == other.variable
          end

message()

[Source]

    # File lib/nitpick/warnings/unused_variable.rb, line 14
          def message
            "The variable #{@variable.inspect} is unused."
          end

[Validate]