diff options
author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 18:23:35 +0000 |
---|---|---|
committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 18:23:35 +0000 |
commit | c1c349edb616be517867cf870ffde23cb19a3bc4 (patch) | |
tree | 4545c4a451ca1211b0890e50f583b0dc8f1d54a8 | |
parent | 20f4a2f322f3f2a7a05d9225cdbb8e63eaf006fd (diff) | |
download | ruby-c1c349edb616be517867cf870ffde23cb19a3bc4.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/yaml/store.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Aug 2 03:20:00 2003 why the lucky stiff <ruby-cvs@whytheluckystiff.net> + + * lib/yaml/store.rb (YAML::Store#initialize): filename is first + argument. Thanks Kent Dahl. + Sat Aug 2 00:49:31 2003 Minero Aoki <aamine@loveruby.net> * lib/net/http.rb: refine document. diff --git a/lib/yaml/store.rb b/lib/yaml/store.rb index b2924b0660..2e74b27221 100644 --- a/lib/yaml/store.rb +++ b/lib/yaml/store.rb @@ -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) |