diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-18 07:57:51 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-18 07:57:51 +0000 |
| commit | 01398dc020224590f7d32390b72db379d2ce099e (patch) | |
| tree | eeafa94fbfa8bff17e9b45ee59d9de83984e95c8 /file.c | |
| parent | f7e67c947ed271b865268c21d6c6666991577d20 (diff) | |
| download | ruby-01398dc020224590f7d32390b72db379d2ce099e.tar.gz ruby-01398dc020224590f7d32390b72db379d2ce099e.tar.xz ruby-01398dc020224590f7d32390b72db379d2ce099e.zip | |
* file.c (Init_File): add to_path method to File objects.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
| -rw-r--r-- | file.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
