зеркало из https://github.com/github/ruby.git
* lib/delegate.rb (Delegator#marshal_dump): exclude
delegator-specific instance variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
9f714e35ec
Коммит
bafb881c1f
|
@ -1,3 +1,8 @@
|
|||
Tue Feb 2 11:13:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/delegate.rb (Delegator#marshal_dump): exclude
|
||||
delegator-specific instance variables.
|
||||
|
||||
Mon Feb 1 21:26:41 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* lib/matrix.rb (Vector#each2): returns a self. [ruby-dev:40241]
|
||||
|
|
|
@ -183,10 +183,10 @@ class Delegator
|
|||
|
||||
# Serialization support for the object returned by \_\_getobj\_\_.
|
||||
def marshal_dump
|
||||
ivars = instance_variables.reject {|var| /\A@delegate_/ =~ var}
|
||||
[
|
||||
:__v2__,
|
||||
instance_variables,
|
||||
instance_variables.map{|var| instance_variable_get(var)},
|
||||
ivars, ivars.map{|var| instance_variable_get(var)},
|
||||
__getobj__
|
||||
]
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define RUBY_VERSION "1.9.2"
|
||||
#define RUBY_RELEASE_DATE "2010-02-01"
|
||||
#define RUBY_RELEASE_DATE "2010-02-02"
|
||||
#define RUBY_PATCHLEVEL -1
|
||||
#define RUBY_BRANCH_NAME "trunk"
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
|||
#define RUBY_VERSION_TEENY 1
|
||||
#define RUBY_RELEASE_YEAR 2010
|
||||
#define RUBY_RELEASE_MONTH 2
|
||||
#define RUBY_RELEASE_DAY 1
|
||||
#define RUBY_RELEASE_DAY 2
|
||||
|
||||
#include "ruby/version.h"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче