mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/yaml/store.rb (YAML::Store#initialize): filename is first
argument. Thanks Kent Dahl. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
20f4a2f322
commit
c1c349edb6
2 changed files with 6 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ module YAML
|
|||
def initialize( *o )
|
||||
@opt = YAML::DEFAULTS.dup
|
||||
if String === o.first
|
||||
super(o.pop)
|
||||
super(o.shift)
|
||||
end
|
||||
if o.last.is_a? Hash
|
||||
@opt.update(o.pop)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue