3 Node = Struct.new(:tag, :value)
9 "#{self.class.name}(tag=#{tag}, value=#{value})"
12 def __is_scalar; false; end
13 def __is_collection; false; end
14 def __is_sequence; false; end
15 def __is_mapping; false; end
18 class ScalarNode < Node
25 def initialize(tag,value,style=nil)
29 def __is_scalar; true; end
32 class CollectionNode < Node
33 attr_accessor :flow_style
35 def initialize(tag, value,flow_style=nil)
37 @flow_style = flow_style
39 def __is_collection; true; end
42 class SequenceNode < CollectionNode
46 def __is_sequence; true; end
49 class MappingNode < CollectionNode
53 def __is_mapping; true; end