summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-01 09:17:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-01 09:17:02 +0000
commit9c1b3161f20162dc1682d758c0e4d2fc3a74745e (patch)
tree949702235feba378edd6828d9d37266509136fb8 /time.c
parent82ec3de020fb765d3d1ad8422744e39bba0f4106 (diff)
complex.c, time.c: make marshal methods private
* complex.c (Init_Complex), time.c (Init_Time): make marshal methods private. [Feature #6539] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/time.c b/time.c
index 44ea1cf5ae..19517a785d 100644
--- a/time.c
+++ b/time.c
@@ -5051,12 +5051,12 @@ Init_Time(void)
rb_define_method(rb_cTime, "strftime", time_strftime, 1);
/* methods for marshaling */
- rb_define_method(rb_cTime, "_dump", time_dump, -1);
- rb_define_singleton_method(rb_cTime, "_load", time_load, 1);
+ rb_define_private_method(rb_cTime, "_dump", time_dump, -1);
+ rb_define_private_method(rb_singleton_class(rb_cTime), "_load", time_load, 1);
#if 0
/* Time will support marshal_dump and marshal_load in the future (1.9 maybe) */
- rb_define_method(rb_cTime, "marshal_dump", time_mdump, 0);
- rb_define_method(rb_cTime, "marshal_load", time_mload, 1);
+ rb_define_private_method(rb_cTime, "marshal_dump", time_mdump, 0);
+ rb_define_private_method(rb_cTime, "marshal_load", time_mload, 1);
#endif
#ifdef DEBUG_FIND_TIME_NUMGUESS