1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
nobu 2010-02-02 02:14:00 +00:00
parent 9f714e35ec
commit bafb881c1f
3 changed files with 9 additions and 4 deletions

View file

@ -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]

View file

@ -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

View file

@ -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"