Class: SkillBench::Cli::Eval::BaseEvalOptions
- Inherits:
-
Object
- Object
- SkillBench::Cli::Eval::BaseEvalOptions
- Defined in:
- lib/skill_bench/cli/eval/eval_options.rb
Overview
Base class for eval command option parsing
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
Instance Method Summary collapse
-
#initialize ⇒ BaseEvalOptions
constructor
A new instance of BaseEvalOptions.
-
#parse!(argv) ⇒ Array<String>
Parses command line arguments.
Constructor Details
#initialize ⇒ BaseEvalOptions
Returns a new instance of BaseEvalOptions.
12 13 14 15 |
# File 'lib/skill_bench/cli/eval/eval_options.rb', line 12 def initialize @options = @parser = create_parser end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
10 11 12 |
# File 'lib/skill_bench/cli/eval/eval_options.rb', line 10 def @options end |
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
10 11 12 |
# File 'lib/skill_bench/cli/eval/eval_options.rb', line 10 def parser @parser end |
Instance Method Details
#parse!(argv) ⇒ Array<String>
Parses command line arguments
21 22 23 |
# File 'lib/skill_bench/cli/eval/eval_options.rb', line 21 def parse!(argv) parser.parse!(argv) end |