Class: DangerPackwerk::BasicReferenceOffense::Location

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/danger-packwerk/basic_reference_offense.rb

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/danger-packwerk/basic_reference_offense.rb', line 22

def eql?(other)
  file == other.file && line_number == other.line_number
end

#hashObject



27
28
29
# File 'lib/danger-packwerk/basic_reference_offense.rb', line 27

def hash
  [file, line_number].hash
end