Class: Hypercuke::CLI::Parser
- Inherits:
-
Object
- Object
- Hypercuke::CLI::Parser
- Defined in:
- lib/hypercuke/cli/parser.rb
Overview
I extract relevant information from a ‘hcu’ command line
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(hcu_command) ⇒ Parser
constructor
A new instance of Parser.
- #layer_name ⇒ Object
Constructor Details
#initialize(hcu_command) ⇒ Parser
Returns a new instance of Parser.
7 8 9 10 |
# File 'lib/hypercuke/cli/parser.rb', line 7 def initialize(hcu_command) @tokens = tokenize(hcu_command) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/hypercuke/cli/parser.rb', line 6 def end |
Instance Method Details
#layer_name ⇒ Object
12 13 14 |
# File 'lib/hypercuke/cli/parser.rb', line 12 def layer_name [:layer_name] end |