Class: RbYAML::CollectionNode
Direct Known Subclasses
Instance Attribute Summary collapse
-
#flow_style ⇒ Object
Returns the value of attribute flow_style.
Attributes inherited from Node
#end_mark, #start_mark, #tag, #value
Instance Method Summary collapse
- #__is_collection ⇒ Object
-
#initialize(tag, value, start_mark = nil, end_mark = nil, flow_style = nil) ⇒ CollectionNode
constructor
A new instance of CollectionNode.
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_style ⇒ Object
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_collection ⇒ Object
39 |
# File 'lib/rbyaml/nodes.rb', line 39 def __is_collection; true; end |