Class: LibRubyParser::Nodes::Super

Inherits:
LibRubyParser::Node show all
Defined in:
lib/lib-ruby-parser/nodes.rb

Overview

Represents a super keyword

Instance Attribute Summary collapse

Instance Attribute Details

#args::Array<Node> (readonly)

A list of arguments given to super

Returns:



3907
3908
3909
# File 'lib/lib-ruby-parser/nodes.rb', line 3907

def args
  @args
end

#begin_lLoc? (readonly)

Location of the open parenthesis

super(1, 2)
     ~

None if there are no parentheses

Returns:



3927
3928
3929
# File 'lib/lib-ruby-parser/nodes.rb', line 3927

def begin_l
  @begin_l
end

#end_lLoc? (readonly)

Location of the closing parenthesis

super(1, 2)
          ~

None if there are no parentheses

Returns:



3938
3939
3940
# File 'lib/lib-ruby-parser/nodes.rb', line 3938

def end_l
  @end_l
end

#expression_lLoc (readonly)

Location of the full expression

super(1, 2)
~~~~~~~~~~~

Returns:



3947
3948
3949
# File 'lib/lib-ruby-parser/nodes.rb', line 3947

def expression_l
  @expression_l
end

#keyword_lLoc (readonly)

Location of the super keyword

super(1, 2)
~~~~~

Returns:



3916
3917
3918
# File 'lib/lib-ruby-parser/nodes.rb', line 3916

def keyword_l
  @keyword_l
end