summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1994-10-14 06:19:03 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:30 +0900
commit29f237a8b1df650089b54447f070726c75706b6f (patch)
treee6ee836a39a5f2f1d433d6532de32471b655fb6d /file.c
parent173976c97c9426aa8d96e53aef6c0e570c5fdfda (diff)
version 0.54v0_54
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.54.tar.gz
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index ebb9251..77245e0 100644
--- a/file.c
+++ b/file.c
@@ -1064,8 +1064,6 @@ Init_File()
C_File = rb_define_class("File", C_IO);
- rb_include_module(CLASS_OF(C_File), M_FileTest);
-
rb_define_single_method(C_File, "stat", Ffile_stat, 1);
rb_define_single_method(C_File, "lstat", Ffile_lstat, 1);
rb_define_single_method(C_File, "type", Ffile_type, 1);
@@ -1088,6 +1086,8 @@ Init_File()
rb_define_single_method(C_File, "umask", Ffile_umask, -1);
rb_define_single_method(C_File, "truncate", Ffile_truncate, 2);
+ rb_include_module(CLASS_OF(C_File), M_FileTest);
+
rb_define_method(C_File, "stat", Ffile_stat2, 0);
rb_define_method(C_File, "lstat", Ffile_lstat2, 0);