Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Psych::Parser#parse

parser.parse(yaml)

Parse the YAML document contained in yaml. Events will be called on the handler set on the parser instance.

See Psych::Parser and Psych::Parser#handler

See also #_native_parse #skip_io_bom #mark #strip_bom also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0