Skip to content
class method

Psych.load_file

(::path, ?fallback: untyped, ?symbolize_names: bool, ?freeze: bool) -> untyped
load_file(filename, **kwargs)

Loads the document contained in filename. Returns the yaml contained in filename as a Ruby object, or if the file is empty, it returns the specified fallback return value, which defaults to nil. See load for options.

See also .load .load_stream .libyaml_version .parse also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0