diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-03 10:10:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-03 10:10:14 +0000 |
commit | 4d73f950682736914ae1a1935b0d224ffeb5ba9c (patch) | |
tree | 3b794d815771aef275512248cb47879f232237b2 /random.c | |
parent | c4f9dd26263da640a2c9a02c478df245685e2b69 (diff) | |
download | ruby-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 'random.c')
-rw-r--r-- | random.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1463,8 +1463,8 @@ Init_Random(void) rb_define_method(rb_cRandom, "bytes", random_bytes, 1); rb_define_method(rb_cRandom, "seed", random_get_seed, 0); rb_define_method(rb_cRandom, "initialize_copy", random_copy, 1); - rb_define_method(rb_cRandom, "marshal_dump", random_dump, 0); - rb_define_method(rb_cRandom, "marshal_load", random_load, 1); + rb_define_private_method(rb_cRandom, "marshal_dump", random_dump, 0); + rb_define_private_method(rb_cRandom, "marshal_load", random_load, 1); rb_define_private_method(rb_cRandom, "state", random_state, 0); rb_define_private_method(rb_cRandom, "left", random_left, 0); rb_define_method(rb_cRandom, "==", random_equal, 1); |