Class: LibRubyParser::Nodes::Super
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Super
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a super
keyword
Instance Attribute Summary collapse
-
#args ⇒ ::Array<Node>
readonly
A list of arguments given to
super
. -
#begin_l ⇒ Loc?
readonly
Location of the open parenthesis.
-
#end_l ⇒ Loc?
readonly
Location of the closing parenthesis.
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#keyword_l ⇒ Loc
readonly
Location of the
super
keyword.
Instance Attribute Details
#args ⇒ ::Array<Node> (readonly)
A list of arguments given to super
3907 3908 3909 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3907 def args @args end |
#begin_l ⇒ Loc? (readonly)
Location of the open parenthesis
super(1, 2)
~
None
if there are no parentheses
3927 3928 3929 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3927 def begin_l @begin_l end |
#end_l ⇒ Loc? (readonly)
Location of the closing parenthesis
super(1, 2)
~
None
if there are no parentheses
3938 3939 3940 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3938 def end_l @end_l end |
#expression_l ⇒ Loc (readonly)
Location of the full expression
super(1, 2)
~~~~~~~~~~~
3947 3948 3949 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3947 def expression_l @expression_l end |
#keyword_l ⇒ Loc (readonly)
Location of the super
keyword
super(1, 2)
~~~~~
3916 3917 3918 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3916 def keyword_l @keyword_l end |