Sha256: 43566e68299ec69354438ba63be034c32bf822e1273564103009e3d83af7d6af

Contents?: true

Size: 583 Bytes

Versions: 32

Compression:

Stored size: 583 Bytes

Contents

module Goodcheck
  class Location
    attr_reader :start_line
    attr_reader :start_column
    attr_reader :end_line
    attr_reader :end_column

    def initialize(start_line:, start_column:, end_line:, end_column:)
      @start_line = start_line
      @start_column = start_column
      @end_line = end_line
      @end_column = end_column
    end

    def ==(other)
      other.is_a?(Location) &&
        other.start_line == start_line &&
        other.start_column == start_column &&
        other.end_line == end_line &&
        other.end_column == end_column
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
goodcheck-2.6.1 lib/goodcheck/location.rb
goodcheck-2.6.0 lib/goodcheck/location.rb
goodcheck-2.5.2 lib/goodcheck/location.rb
goodcheck-2.5.1 lib/goodcheck/location.rb
goodcheck-2.5.0 lib/goodcheck/location.rb
goodcheck-2.4.5 lib/goodcheck/location.rb
goodcheck-2.4.4 lib/goodcheck/location.rb
goodcheck-2.4.3 lib/goodcheck/location.rb
goodcheck-2.4.2 lib/goodcheck/location.rb
goodcheck-2.4.1 lib/goodcheck/location.rb
goodcheck-2.4.0 lib/goodcheck/location.rb
goodcheck-2.3.2 lib/goodcheck/location.rb
goodcheck-2.3.1 lib/goodcheck/location.rb
goodcheck-2.3.0 lib/goodcheck/location.rb
goodcheck-2.2.0 lib/goodcheck/location.rb
goodcheck-2.1.2 lib/goodcheck/location.rb
goodcheck-2.1.1 lib/goodcheck/location.rb
goodcheck-2.1.0 lib/goodcheck/location.rb
goodcheck-1.7.1 lib/goodcheck/location.rb
goodcheck-1.7.0 lib/goodcheck/location.rb