class Cucumber::Core::Ast::Location::Lines

def ==(other)

def ==(other)
  other.data == data
end

def at_index(idx)

def at_index(idx)
  data.to_a[idx]
end

def boundary

def boundary
  first_and_last(value).uniq
end

def first_and_last(something)

def first_and_last(something)
  [0, -1].map(&something)
end

def include?(other)

def include?(other)
  return true if (data|other.data).include?(WILDCARD)
  other.data.subset?(data) || data.subset?(other.data)
end

def initialize(line)

def initialize(line)
  if Cucumber::JRUBY && line.is_a?(::Java::GherkinFormatterModel::Range)
    line = Range.new(line.first, line.last)
  end
  @line = line
  @data = Array(line).to_set
end

def to_s

def to_s
  boundary.join('..')
end

def value

def value
  method :at_index
end