Class: LibRubyParser::Nodes::NthRef

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

Overview

Represents numeric global variable (e.g. ‘$1`)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

“‘text $1 ~~ “`

Returns:



3001
3002
3003
# File 'lib/lib-ruby-parser/nodes.rb', line 3001

def expression_l
  @expression_l
end

#nameString (readonly)

Name of the variable, ‘String(“1”)` for `$1`

Returns:

  • (String)


2992
2993
2994
# File 'lib/lib-ruby-parser/nodes.rb', line 2992

def name
  @name
end