Skip to content

YAML.load_file to empty file gives false #258

@BrandonMathis

Description

@BrandonMathis

When parsing a YAML doc.

Got

irb(main):002:0> YAML.load_file File.join("spec","fixtures","empty.yml")
=> false

Expected

irb(main):002:0> YAML.load_file File.join("spec","fixtures","empty.yml")
=> {}

Is this expected or would a patch to return an empty hash be accepted?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions