From 3487136f706d51946394d18fb5d27f8aede19a1c Mon Sep 17 00:00:00 2001 From: tadf Date: Mon, 21 Jan 2008 11:10:53 +0000 Subject: * lib/date.rb (marshal_load): initialize the cache. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/date.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/date.rb') diff --git a/lib/date.rb b/lib/date.rb index 63d6324eef..63bb9cae15 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -1482,7 +1482,10 @@ class Date def marshal_dump() [@ajd, @of, @sg] end # Load from Marshall format. - def marshal_load(a) @ajd, @of, @sg, = a end + def marshal_load(a) + @ajd, @of, @sg, = a + @__ca__ = {} + end end -- cgit v1.2.3