Base class for file based operations
# File lib/gherkin/tools/files.rb, line 14 14: def each(&proc) 15: globs = @paths.map do |path| 16: raise "#{path} does not exist" unless File.exist?(path) 17: File.directory?(path) ? File.join(path, '**', '*.feature') : path 18: end 19: 20: Dir[*globs].uniq.sort.each(&proc) 21: end
# File lib/gherkin/tools/files.rb, line 23 23: def scan(file, formatter) 24: parser = Gherkin::Parser::Parser.new(formatter, true, "root") 25: begin 26: parser.parse(IO.read(file), file, 0) 27: rescue => e 28: e.message << " (#{file})" 29: raise e 30: end 31: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.