Class: Cwb::DirectoryParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/cwb/directory_parser.rb

Direct Known Subclasses

DirectorySuiteParser

Instance Method Summary collapse

Methods inherited from Parser

#benchmark_suite, #execute, #init_config, #initialize

Constructor Details

This class inherits a constructor from Cwb::Parser

Instance Method Details

#delegate_executionObject



11
12
13
14
# File 'lib/cwb/directory_parser.rb', line 11

def delegate_execution
  cwb_benchmarks = init_classes(read_lines(benchmarks_file_path))
  benchmark_suite.execute_suite(cwb_benchmarks)
end

#validateObject



6
7
8
9
# File 'lib/cwb/directory_parser.rb', line 6

def validate
  check_file_exists(benchmarks_file_path)
  require_all(read_lines(benchmarks_file_path))
end