mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 22:14:37 +02:00
* 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
This commit is contained in:
parent
38321fc0eb
commit
3487136f70
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue