psych icon indicating copy to clipboard operation
psych copied to clipboard

Psych.load_file when parsing empty file returns Psych::Parser

Open serzh opened this issue 12 years ago • 1 comments

When loading empty file with Psych.load_file it returns Psych::Parser object instead of nil.

Psych.load_file(file_name) # => Psych::Parser:0x0000000d08d010

serzh avatar Dec 13 '13 08:12 serzh

Sory, this problem arise only with rails.

serzh avatar Dec 13 '13 09:12 serzh