summaryrefslogtreecommitdiff
path: root/lib/psych/nodes/alias.rb
blob: b697cc143549d098c014944dfeb9bb9ab0a42479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Psych
  module Nodes
    ###
    # This class represents a {YAML Alias}[http://yaml.org/spec/1.1/#alias].
    # It points to an +anchor+
    class Alias < Psych::Nodes::Node
      # The anchor this alias links to
      attr_accessor :anchor

      def initialize anchor
        @anchor = anchor
      end
    end
  end
end