diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-18 03:05:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-18 03:05:33 +0000 |
commit | 9213040c9924ecffa0acff52b4da722ab520e84a (patch) | |
tree | dd1edabab51560341eed838cef0f8626fbda5b01 /object.c | |
parent | 697a9d99ba1dc5db5a3e9ef1b69978a749599920 (diff) | |
download | ruby-9213040c9924ecffa0acff52b4da722ab520e84a.tar.gz ruby-9213040c9924ecffa0acff52b4da722ab520e84a.tar.xz ruby-9213040c9924ecffa0acff52b4da722ab520e84a.zip |
* marshal.c (w_object, marshal_dump, r_object0, marshal_load): search
public methods only. [ruby-core:17283]
* object.c (convert_type): ditto.
* lib/singleton.rb (Singleton#_dump): conversion method should be
public.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1904,7 +1904,7 @@ convert_type(VALUE val, const char *tname, const char *method, int raise) ID m; m = rb_intern(method); - if (!rb_obj_respond_to(val, m, Qtrue)) { + if (!rb_respond_to(val, m)) { if (raise) { rb_raise(rb_eTypeError, "can't convert %s into %s", NIL_P(val) ? "nil" : |