From 7a426e029aacb7868a7bf39f7c21877c90b68319 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 3 Sep 2009 23:07:13 +0000 Subject: [PATCH] * dir.c (Init_Dir): alias Dir#path to Dir#to_path. [ruby-core:25326] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ dir.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5000b938ee..2bd73ef4fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Sep 4 06:15:39 2009 Yukihiro Matsumoto + + * dir.c (Init_Dir): alias Dir#path to Dir#to_path. [ruby-core:25326] + Fri Sep 4 04:49:39 2009 Nobuyoshi Nakada * random.c (random_rand): fixed rdoc. [ruby-core:25332] diff --git a/dir.c b/dir.c index 8d3c57f0f3..2459658f4d 100644 --- a/dir.c +++ b/dir.c @@ -1968,6 +1968,7 @@ Init_Dir(void) rb_define_method(rb_cDir,"initialize", dir_initialize, -1); rb_define_method(rb_cDir,"path", dir_path, 0); + rb_define_method(rb_cDir,"to_path", dir_path, 0); rb_define_method(rb_cDir,"inspect", dir_inspect, 0); rb_define_method(rb_cDir,"read", dir_read, 0); rb_define_method(rb_cDir,"each", dir_each, 0);