Class: ShellOpts::Grammar::ArgSpec
- Defined in:
- lib/shellopts/dump.rb,
lib/shellopts/parser.rb,
lib/shellopts/grammar.rb
Constant Summary
Constants inherited from Node
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Attributes inherited from Node
Instance Method Summary collapse
- #dump_idr(short = false) ⇒ Object
-
#initialize(parent, token) ⇒ ArgSpec
constructor
A new instance of ArgSpec.
-
#parse ⇒ Object
TODO.
Methods inherited from Node
#analyzer_error, #ancestors, #dump_ast, #dump_attrs, #inspect, #parents, parse, #parser_error, #puts_help, #puts_usage, #remove_arg_descr_nodes, #remove_arg_spec_nodes, #remove_brief_nodes, #traverse
Constructor Details
#initialize(parent, token) ⇒ ArgSpec
Returns a new instance of ArgSpec.
301 302 303 304 |
# File 'lib/shellopts/grammar.rb', line 301 def initialize(parent, token) @arguments = [] super end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
299 300 301 |
# File 'lib/shellopts/grammar.rb', line 299 def arguments @arguments end |
Instance Method Details
#dump_idr(short = false) ⇒ Object
125 126 127 128 |
# File 'lib/shellopts/dump.rb', line 125 def dump_idr(short = false) super dump_attrs :arguments end |
#parse ⇒ Object
TODO
143 144 145 |
# File 'lib/shellopts/parser.rb', line 143 def parse # TODO super end |