Class: RuboBot::RuboCop::Offense
- Inherits:
-
Object
- Object
- RuboBot::RuboCop::Offense
- Defined in:
- lib/rubobot/rubocop/offense.rb
Overview
An offense found by RuboCop
Instance Method Summary collapse
- #==(other) ⇒ Object
- #count ⇒ Object
-
#initialize(offense_data) ⇒ Offense
constructor
A new instance of Offense.
- #name ⇒ Object
Constructor Details
#initialize(offense_data) ⇒ Offense
Returns a new instance of Offense.
7 8 9 |
# File 'lib/rubobot/rubocop/offense.rb', line 7 def initialize(offense_data) @offense_data = offense_data end |
Instance Method Details
#==(other) ⇒ Object
19 20 21 |
# File 'lib/rubobot/rubocop/offense.rb', line 19 def ==(other) offense_data == other.offense_data end |
#count ⇒ Object
15 16 17 |
# File 'lib/rubobot/rubocop/offense.rb', line 15 def count offense.count end |
#name ⇒ Object
11 12 13 |
# File 'lib/rubobot/rubocop/offense.rb', line 11 def name offense.name end |