Class: DangerPackwerk::BasicReferenceOffense::Location
- Inherits:
-
T::Struct
- Object
- T::Struct
- DangerPackwerk::BasicReferenceOffense::Location
- Extended by:
- T::Sig
- Defined in:
- lib/danger-packwerk/basic_reference_offense.rb
Instance Method Summary collapse
Instance Method Details
#eql?(other) ⇒ 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 |
#hash ⇒ Object
27 28 29 |
# File 'lib/danger-packwerk/basic_reference_offense.rb', line 27 def hash [file, line_number].hash end |