class Cucumber::Cli::RerunFile
def self.can_read?(path)
def self.can_read?(path) path[0] == '@' && File.file?(real_path(path)) end
def self.real_path(path)
def self.real_path(path) path[1..] end
def features
def features lines.map { |l| l.scan(/(?:^| |)(.*?\.feature(?:(?::\d+)*))/) }.flatten end
def initialize(path)
def initialize(path) @path = self.class.real_path(path) end
def lines
def lines IO.read(@path).split("\n") end