1
0
Fork 0
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:
why 2003-08-01 18:23:35 +00:00
parent 20f4a2f322
commit c1c349edb6
2 changed files with 6 additions and 1 deletions

View file

@ -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)