зеркало из https://github.com/github/ruby.git
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a099c5420c
Коммит
ae3cb8bc4e
|
@ -469,7 +469,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 default return value, which defaults to an empty Hash
|
||||
def self.load_file filename, fallback = false
|
||||
File.open(filename, 'r:bom|utf-8') { |f|
|
||||
self.load f, filename, FALLBACK.new(fallback)
|
||||
|
|
Загрузка…
Ссылка в новой задаче