summaryrefslogtreecommitdiff
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
commit3487136f706d51946394d18fb5d27f8aede19a1c (patch)
tree77e645674fba0f15591a04a6c6b881df3c2ba3a5 /lib/date.rb
parent38321fc0ebe2c434be24f67703f5b9f4096ee4b7 (diff)
* 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
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 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