Method: Psych::Nodes::Sequence#initialize
- Defined in:
- lib/psych/nodes/sequence.rb
#initialize(anchor = nil, tag = nil, implicit = true, style = BLOCK) ⇒ Sequence
Create a new object representing a YAML sequence.
anchor
is the anchor associated with the sequence or nil. tag
is the tag associated with the sequence or nil. implicit
a boolean indicating whether or not the sequence was implicitly started. style
is an integer indicating the list style.
See Psych::Handler#start_sequence
73 74 75 76 77 78 79 |
# File 'lib/psych/nodes/sequence.rb', line 73 def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK super() @anchor = anchor @tag = tag @implicit = implicit @style = style end |