class RuboCop::ErrorWithAnalyzedFileLocation
A wrapper to display errored location of analyzed file.
Attributes
Public Class Methods
Source
# File lib/rubocop/error.rb, line 14 def initialize(cause:, node:, cop:) super() @cause = cause @cop = cop @location = node.is_a?(RuboCop::AST::Node) ? node.loc : node end
Calls superclass method