summaryrefslogtreecommitdiff
path: root/ext/pathname
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-20 02:26:30 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-20 02:26:30 +0000
commitc7caeda5ed20938974ccb7dd6bfddad1e65cb18e (patch)
tree87613ba2128fa51fe83276c6a30fe8905d9d5f2b /ext/pathname
parent971a57004e346d87c7f0f55d16f1abb66fe24451 (diff)
* ext/pathname/pathname.c (Init_pathname): Pathname#=~ undefinition
translated from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pathname')
-rw-r--r--ext/pathname/lib/pathname.rb4
-rw-r--r--ext/pathname/pathname.c1
2 files changed, 1 insertions, 4 deletions
diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb
index 0c1351d..f6e06f2 100644
--- a/ext/pathname/lib/pathname.rb
+++ b/ext/pathname/lib/pathname.rb
@@ -526,10 +526,6 @@ class Pathname # * FileUtils *
end
-class Pathname
- undef =~
-end
-
module Kernel
# create a pathname object.
#
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c
index f5a0182..b3fe3af 100644
--- a/ext/pathname/pathname.c
+++ b/ext/pathname/pathname.c
@@ -1224,4 +1224,5 @@ Init_pathname()
rb_define_method(rb_cPathname, "each_entry", path_each_entry, 0);
rb_define_method(rb_cPathname, "unlink", path_unlink, 0);
rb_define_method(rb_cPathname, "delete", path_unlink, 0);
+ rb_undef_method(rb_cPathname, "=~");
}