Sha256: 76e6f4ec47bc45e7fd9203affb8bc62aff5e4756367203bb53d3674e306bd591
Contents?: true
Size: 536 Bytes
Versions: 5218
Compression:
Stored size: 536 Bytes
Contents
module RSpec module Support class Source # @private # Represents a source location of node or token. Location = Struct.new(:line, :column) do include Comparable def self.location?(array) array.is_a?(Array) && array.size == 2 && array.all? { |e| e.is_a?(Integer) } end def <=>(other) line_comparison = (line <=> other.line) return line_comparison unless line_comparison == 0 column <=> other.column end end end end end
Version data entries
5,218 entries across 5,143 versions & 96 rubygems