Method: RuboCop::Cop::Offense#corrected?

Defined in:
lib/rubocop/cop/offense.rb

#corrected?Boolean (readonly)

Returns whether this offense is automatically corrected via autocorrect or a todo.

Returns:

  • (Boolean)

    whether this offense is automatically corrected via autocorrect or a todo.

[View source]

112
113
114
# File 'lib/rubocop/cop/offense.rb', line 112

def corrected?
  @status == :corrected || @status == :corrected_with_todo
end