Class: Melbourne::AST::BackRef
- Defined in:
- lib/melbourne/ast/variables.rb
Overview
A back reference as in:
$&
or
$'
Instance Attribute Summary collapse
-
#kind ⇒ Object
The kind of back reference.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, ref) ⇒ BackRef
constructor
A new instance of BackRef.
Methods inherited from Node
Constructor Details
#initialize(line, ref) ⇒ BackRef
Returns a new instance of BackRef.
19 20 21 22 |
# File 'lib/melbourne/ast/variables.rb', line 19 def initialize(line, ref) @line = line @kind = ref end |
Instance Attribute Details
#kind ⇒ Object
The kind of back reference
17 18 19 |
# File 'lib/melbourne/ast/variables.rb', line 17 def kind @kind end |