Class: LibRubyParser::Nodes::Return

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

Overview

Represents return keyword

Instance Attribute Summary collapse

Instance Attribute Details

#args::Array<Node> (readonly)

A list of values that is returned

Returns:



3645
3646
3647
# File 'lib/lib-ruby-parser/nodes.rb', line 3645

def args
  @args
end

#expression_lLoc (readonly)

Location of the full expression

return 1, 2
~~~~~~~~~~~

Returns:



3663
3664
3665
# File 'lib/lib-ruby-parser/nodes.rb', line 3663

def expression_l
  @expression_l
end

#keyword_lLoc (readonly)

Location of the return keyword

return 1, 2
~~~~~~

Returns:



3654
3655
3656
# File 'lib/lib-ruby-parser/nodes.rb', line 3654

def keyword_l
  @keyword_l
end