diff options
Diffstat (limited to 'ext/pathname/pathname.c')
-rw-r--r-- | ext/pathname/pathname.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c index f5a0182bf0..b3fe3af9ca 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, "=~"); } |