From dcb9f150e5c59dc4a4a09ff477f57a79d23a5d08 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 18 May 2007 07:57:51 +0000 Subject: * 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 --- file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'file.c') diff --git a/file.c b/file.c index 9ef9ad7223..7379112878 100644 --- a/file.c +++ b/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); -- cgit v1.2.3