diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/psych/lib/psych.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/lib/psych.rb b/ext/psych/lib/psych.rb index cf17eaaa27..9507bbb53b 100644 --- a/ext/psych/lib/psych.rb +++ b/ext/psych/lib/psych.rb @@ -226,7 +226,7 @@ module Psych # Load the document contained in +filename+. Returns the yaml contained in # +filename+ as a ruby object def self.load_file filename - self.load File.open(filename) + File.open(filename) { |f| self.load f } end # :stopdoc: |
