Class: Psych::Nodes::Alias
Overview
This class represents a YAML Alias. It points to an anchor
.
A Psych::Nodes::Alias is a terminal node and may have no children.
Instance Attribute Summary collapse
-
#anchor ⇒ Object
The anchor this alias links to.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(anchor) ⇒ Alias
constructor
Create a new Alias that points to an
anchor
.
Methods inherited from Node
Constructor Details
#initialize(anchor) ⇒ Alias
Create a new Alias that points to an anchor
14 15 16 |
# File 'lib/psych/nodes/alias.rb', line 14 def initialize anchor @anchor = anchor end |
Instance Attribute Details
#anchor ⇒ Object
The anchor this alias links to
11 12 13 |
# File 'lib/psych/nodes/alias.rb', line 11 def anchor @anchor end |