Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Psych::Nodes::Sequence.new

new(anchor = nil, tag = nil, implicit = true, style = BLOCK)

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

See also #sequence? also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0