Class: LibRubyParser::Nodes::BackRef
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::BackRef
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents special global variables:
-
“ $‘ “
-
‘$&`
-
‘$’‘
-
‘$+`
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#name ⇒ String
readonly
Name of the variable (‘“$+”` for `$+`).
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
“‘text $+ ~~ “`
302 303 304 |
# File 'lib/lib-ruby-parser/nodes.rb', line 302 def expression_l @expression_l end |
#name ⇒ String (readonly)
Name of the variable (‘“$+”` for `$+`)
293 294 295 |
# File 'lib/lib-ruby-parser/nodes.rb', line 293 def name @name end |