Skip to content

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

class method

Psych.libyaml_version

Psych.libyaml_version

Returns the version of the underlying YAML library as a three-element array. This is libyaml by default. On the experimental libfyaml backend, where libyaml is not linked, it reports the libfyaml version instead.

See also .libfyaml_version .load .dump_stream .load_file also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0