Class: LibRubyParser::Nodes::Gvar

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

Overview

Represents access to global variable (i.e. $foo)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

$foo
~~~~

Returns:



1610
1611
1612
# File 'lib/lib-ruby-parser/nodes.rb', line 1610

def expression_l
  @expression_l
end

#nameString (readonly)

Name of the global variable, String("$foo") for $foo

Returns:

  • (String)


1601
1602
1603
# File 'lib/lib-ruby-parser/nodes.rb', line 1601

def name
  @name
end