From c25309de42fecd415f01e78e954de5f748cf70aa 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: http://svn.ruby-lang.org/repos/ruby/trunk@15157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/date.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/date.rb b/lib/date.rb index 63d6324ee..63bb9cae1 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