summaryrefslogtreecommitdiffstats
path: root/lib/date.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-21 11:10:53 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-21 11:10:53 +0000
commitc25309de42fecd415f01e78e954de5f748cf70aa (patch)
tree77e645674fba0f15591a04a6c6b881df3c2ba3a5 /lib/date.rb
parentfbabc5cf2b01783c35847b20f8512316ec2b1c3d (diff)
downloadruby-c25309de42fecd415f01e78e954de5f748cf70aa.tar.gz
ruby-c25309de42fecd415f01e78e954de5f748cf70aa.tar.xz
ruby-c25309de42fecd415f01e78e954de5f748cf70aa.zip
* 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
Diffstat (limited to 'lib/date.rb')
-rw-r--r--lib/date.rb5
1 files changed, 4 insertions, 1 deletions
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