Class: ShellOpts::Grammar::ArgSpec

Inherits:
Node
  • Object
show all
Defined in:
lib/shellopts/dump.rb,
lib/shellopts/parser.rb,
lib/shellopts/grammar.rb

Constant Summary

Constants inherited from Node

Node::ALLOWED_PARENTS

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #parent, #token

Instance Method Summary collapse

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.



300
301
302
303
# File 'lib/shellopts/grammar.rb', line 300

def initialize(parent, token)
  @arguments = []
  super
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



298
299
300
# File 'lib/shellopts/grammar.rb', line 298

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

#parseObject

TODO



143
144
145
# File 'lib/shellopts/parser.rb', line 143

def parse # TODO
  super
end