class Cucumber::Core::Ast::Location::Lines
def +(more_lines)
def +(more_lines) new_data = data + more_lines.data self.class.new(new_data) end
def first
def first data.first end
def include?(other)
def include?(other) other.data.subset?(data) || data.subset?(other.data) end
def initialize(raw_data)
def initialize(raw_data) super Array(raw_data).to_set end
def inspect
def inspect "<#{self.class}: #{to_s}>" end
def range?
def range? data.size == (data.max - data.min + 1) end
def to_s
def to_s return first.to_s if data.length == 1 return "#{data.min}..#{data.max}" if range? data.to_a.join(":") end