Class: Cwb::Parser
- Inherits:
-
Object
show all
- Defined in:
- lib/cwb/parser.rb
Instance Method Summary
collapse
Constructor Details
#initialize(path) ⇒ Parser
Returns a new instance of Parser.
3
4
5
6
|
# File 'lib/cwb/parser.rb', line 3
def initialize(path)
@path = File.expand_path(path)
init_config(@path)
end
|
Instance Method Details
#benchmark_suite ⇒ Object
#delegate_execution ⇒ Object
24
25
26
|
# File 'lib/cwb/parser.rb', line 24
def delegate_execution
fail "Not implemented in abstract base class"
end
|
#execute ⇒ Object
15
16
17
18
|
# File 'lib/cwb/parser.rb', line 15
def execute
validate
delegate_execution
end
|
#init_config(dir) ⇒ Object
#validate ⇒ Object
20
21
22
|
# File 'lib/cwb/parser.rb', line 20
def validate
fail "Not implemented in abstract base class"
end
|