mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (Init_File): add to_path method to File objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
635c599d6b
commit
dcb9f150e5
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri May 18 16:44:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* file.c (Init_File): add to_path method to File objects.
|
||||
|
||||
Fri May 18 11:12:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ruby.c (DllMain, ruby_init_loadpath): use DLL instance handle given
|
||||
|
|
1
file.c
1
file.c
|
@ -4435,6 +4435,7 @@ Init_File(void)
|
|||
rb_file_const("LOCK_NB", INT2FIX(LOCK_NB));
|
||||
|
||||
rb_define_method(rb_cFile, "path", rb_file_path, 0);
|
||||
rb_define_method(rb_cFile, "to_path", rb_file_path, 0);
|
||||
rb_define_global_function("test", rb_f_test, -1);
|
||||
|
||||
rb_cStat = rb_define_class_under(rb_cFile, "Stat", rb_cObject);
|
||||
|
|
Loading…
Reference in a new issue