Class: Optitron
- Inherits:
-
Object
- Object
- Optitron
- Defined in:
- lib/optitron.rb,
lib/optitron/cli.rb,
lib/optitron/dsl.rb,
lib/optitron/help.rb,
lib/optitron/option.rb,
lib/optitron/parser.rb,
lib/optitron/version.rb,
lib/optitron/response.rb,
lib/optitron/class_dsl.rb,
lib/optitron/tokenizer.rb
Defined Under Namespace
Modules: ClassDsl Classes: CLI, Dsl, Help, Option, Parser, Response, Tokenizer
Constant Summary collapse
- InvalidParser =
Class.new(RuntimeError)
- VERSION =
"0.3.3"
Instance Attribute Summary collapse
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
Class Method Summary collapse
Instance Method Summary collapse
- #help ⇒ Object
-
#initialize(&blk) ⇒ Optitron
constructor
A new instance of Optitron.
- #parse(args) ⇒ Object
Constructor Details
Instance Attribute Details
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
13 14 15 |
# File 'lib/optitron.rb', line 13 def parser @parser end |
Class Method Details
Instance Method Details
#help ⇒ Object
28 29 30 |
# File 'lib/optitron.rb', line 28 def help @parser.help end |
#parse(args) ⇒ Object
20 21 22 |
# File 'lib/optitron.rb', line 20 def parse(args) @parser.parse(args) end |