Class: Cwb::DirectorySuiteParser
- Inherits:
-
DirectoryParser
- Object
- Parser
- DirectoryParser
- Cwb::DirectorySuiteParser
- Defined in:
- lib/cwb/directory_suite_parser.rb
Class Method Summary collapse
Instance Method Summary collapse
- #benchmark_suite ⇒ Object
-
#validate ⇒ Object
Suite file does definitely exist, otherwise the usual direcoy parser implementation would have been chosen instead.
Methods inherited from DirectoryParser
Methods inherited from Parser
#delegate_execution, #execute, #init_config, #initialize
Constructor Details
This class inherits a constructor from Cwb::Parser
Class Method Details
.suite_file_present?(path) ⇒ Boolean
5 6 7 |
# File 'lib/cwb/directory_suite_parser.rb', line 5 def self.suite_file_present?(path) File.exists?(self.suite_file_path(path)) && !File.read(self.suite_file_path(path)).empty? end |
Instance Method Details
#benchmark_suite ⇒ Object
16 17 18 |
# File 'lib/cwb/directory_suite_parser.rb', line 16 def benchmark_suite init_classes(read_lines(suite_file_path)).first end |
#validate ⇒ Object
Suite file does definitely exist, otherwise the usual direcoy parser implementation would have been chosen instead.
11 12 13 14 |
# File 'lib/cwb/directory_suite_parser.rb', line 11 def validate super require_all(read_lines(suite_file_path)) end |