Class: LibRubyParser::Nodes::Arg
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Arg
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a positional required block/method argument.
a
in def m(a); end
or proc { |a| }
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#name ⇒ String
readonly
Name of the argument.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
def m(argument); end
~~~~~~~~
125 126 127 |
# File 'lib/lib-ruby-parser/nodes.rb', line 125 def expression_l @expression_l end |
#name ⇒ String (readonly)
Name of the argument
116 117 118 |
# File 'lib/lib-ruby-parser/nodes.rb', line 116 def name @name end |