class Cucumber::Core::Ast::Location
def initialize(filepath, lines=WILDCARD)
def initialize(filepath, lines=WILDCARD) filepath || raise(ArgumentError, "file is mandatory") lines || raise(ArgumentError, "line is mandatory") super(FilePath.new(filepath), Lines.new(lines)) end
def inspect
def inspect "<#{self.class}: #{to_s}>" end
def match?(other)
def match?(other) other.same_as?(filepath) && other.include?(lines) end
def on_line(new_line)
def on_line(new_line) Location.new(filepath.filename, new_line) end
def to_s
def to_s [filepath.to_s, lines.to_s].reject { |v| v == WILDCARD.to_s }.join(":") end
def to_str
def to_str to_s end