summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-03 10:10:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-03 10:10:14 +0000
commit4d73f950682736914ae1a1935b0d224ffeb5ba9c (patch)
tree3b794d815771aef275512248cb47879f232237b2 /rational.c
parentc4f9dd26263da640a2c9a02c478df245685e2b69 (diff)
downloadruby-4d73f950682736914ae1a1935b0d224ffeb5ba9c.tar.gz
random.c, rational.c: make marshal methods private
* random.c (Init_Random), rational.c (Init_Rational): make marshal methods private. [Feature #6539] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rational.c b/rational.c
index 855b187b1d..e4201ddd18 100644
--- a/rational.c
+++ b/rational.c
@@ -2432,9 +2432,9 @@ Init_Rational(void)
rb_define_method(rb_cRational, "to_s", nurat_to_s, 0);
rb_define_method(rb_cRational, "inspect", nurat_inspect, 0);
- rb_define_method(rb_cRational, "marshal_dump", nurat_marshal_dump, 0);
+ rb_define_private_method(rb_cRational, "marshal_dump", nurat_marshal_dump, 0);
compat = rb_define_class_under(rb_cRational, "compatible", rb_cObject);
- rb_define_method(compat, "marshal_load", nurat_marshal_load, 1);
+ rb_define_private_method(compat, "marshal_load", nurat_marshal_load, 1);
rb_marshal_define_compat(rb_cRational, compat, nurat_dumper, nurat_loader);
/* --- */