Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

Psych::Nodes::Mapping.new

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

Create a new Psych::Nodes::Mapping object.

anchor is the anchor associated with the map or nil. tag is the tag associated with the map or nil. implicit is a boolean indicating whether or not the map was implicitly started. style is an integer indicating the mapping style.

See Also

See also Psych::Handler#start_mapping

See also #mapping? also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0