Class: LibRubyParser::Nodes::Gvar
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Gvar
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents access to global variable (i.e. ‘$foo`)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#name ⇒ String
readonly
Name of the global variable, ‘String(“$foo”)` for `$foo`.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
“‘text $foo ~~~~ “`
1610 1611 1612 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1610 def expression_l @expression_l end |
#name ⇒ String (readonly)
Name of the global variable, ‘String(“$foo”)` for `$foo`
1601 1602 1603 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1601 def name @name end |