Class: RbYAML::CollectionNode

Inherits:
Node show all
Defined in:
lib/rbyaml/nodes.rb

Direct Known Subclasses

MappingNode, SequenceNode

Instance Attribute Summary collapse

Attributes inherited from Node

#end_mark, #start_mark, #tag, #value

Instance Method Summary collapse

Methods inherited from Node

#__is_mapping, #__is_scalar, #__is_sequence, #hash, #to_s

Constructor Details

#initialize(tag, value, start_mark = nil, end_mark = nil, flow_style = nil) ⇒ CollectionNode

Returns a new instance of CollectionNode.



35
36
37
38
# File 'lib/rbyaml/nodes.rb', line 35

def initialize(tag, value,start_mark=nil,end_mark=nil,flow_style=nil)
  super(tag,value,start_mark,end_mark)
  @flow_style = flow_style
end

Instance Attribute Details

#flow_styleObject

Returns the value of attribute flow_style.



33
34
35
# File 'lib/rbyaml/nodes.rb', line 33

def flow_style
  @flow_style
end

Instance Method Details

#__is_collectionObject



39
# File 'lib/rbyaml/nodes.rb', line 39

def __is_collection; true; end