Class: RuboBot::RuboCop::Offense

Inherits:
Object
  • Object
show all
Defined in:
lib/rubobot/rubocop/offense.rb

Overview

An offense found by RuboCop

Instance Method Summary collapse

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

#countObject



15
16
17
# File 'lib/rubobot/rubocop/offense.rb', line 15

def count
  offense.count
end

#nameObject



11
12
13
# File 'lib/rubobot/rubocop/offense.rb', line 11

def name
  offense.name
end