summaryrefslogtreecommitdiff
path: root/lib/psych.rb
diff options
context:
space:
mode:
authorMarcus Stollsteimer <sto.mar@web.de>2017-12-19 23:02:11 +0100
committerMarcus Stollsteimer <sto.mar@web.de>2017-12-19 23:02:11 +0100
commit1f2eb4b7b968f0f1f7083f167d3e35a1fe254cdc (patch)
tree1940ae79572a9bfa1a956bafbf71e10607b30839 /lib/psych.rb
parentdd8bb41f60c64b4128ca0a2c91a38ae86adccc0e (diff)
downloadpsych-1f2eb4b7b968f0f1f7083f167d3e35a1fe254cdc.tar.gz
Add more test cases for fallback of Psych.load_file
Add more test cases for the fallback keyword argument of Psych.load_file; additionally, fix an error in the docs.
Diffstat (limited to 'lib/psych.rb')
-rw-r--r--lib/psych.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psych.rb b/lib/psych.rb
index a4d5a96..ad87ece 100644
--- a/lib/psych.rb
+++ b/lib/psych.rb
@@ -492,7 +492,7 @@ module Psych
###
# Load 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 default return value, which defaults to an empty Hash
+ # the specified +fallback+ return value, which defaults to +false+.
def self.load_file filename, fallback: false
File.open(filename, 'r:bom|utf-8') { |f|
self.load f, filename, fallback: FALLBACK.new(fallback)