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

#tag, #value

Instance Method Summary collapse

Methods inherited from Node

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

Methods inherited from Struct

#to_yaml_node, yaml_new, yaml_tag_class_name, yaml_tag_read_class

Constructor Details

#initialize(tag, value, 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,flow_style=nil)
  super(tag,value)
  @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