summaryrefslogtreecommitdiff
path: root/lib/psych/nodes/alias.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-01-16 18:33:02 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-01-16 18:33:02 -0800
commitdbf891f8a2c2e4eab5dfe30b1169572de17a6225 (patch)
treeed0d2ff443389fa44aa7665c1ed41109989dceff /lib/psych/nodes/alias.rb
parent9666b518f1b296ea9c4d6b07bd27ac1e9d73ad7b (diff)
downloadpsych-dbf891f8a2c2e4eab5dfe30b1169572de17a6225.tar.gz
more docs
Diffstat (limited to 'lib/psych/nodes/alias.rb')
-rw-r--r--lib/psych/nodes/alias.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/psych/nodes/alias.rb b/lib/psych/nodes/alias.rb
index b697cc1..5bd4df1 100644
--- a/lib/psych/nodes/alias.rb
+++ b/lib/psych/nodes/alias.rb
@@ -2,11 +2,14 @@ module Psych
module Nodes
###
# This class represents a {YAML Alias}[http://yaml.org/spec/1.1/#alias].
- # It points to an +anchor+
+ # It points to an +anchor+.
+ #
+ # A Psych::Nodes::Alias is a terminal node and may have no children.
class Alias < Psych::Nodes::Node
# The anchor this alias links to
attr_accessor :anchor
+ # Create a new Alias that points to an +anchor+
def initialize anchor
@anchor = anchor
end