From: Kenta Murata Date: 2011-07-05T16:50:39+09:00 Subject: [ruby-dev:44037] [Ruby 1.9 - Feature #4976][Open] Pathname#=~ が undef されている理由 Issue #4976 has been reported by Kenta Murata. ---------------------------------------- Feature #4976: Pathname#=~ が undef されている理由 http://redmine.ruby-lang.org/issues/4976 Author: Kenta Murata Status: Open Priority: Normal Assignee: Akira Tanaka Category: ext Target version: 1.9.x Pathname#=~ が欲しいなぁと思って、patch を書いて feature request を投稿しようとしたところ、 Init_pathname の中で明示的に undef されている事に気が付きました。 このメソッドが undef されている理由を教えて頂けませんか。 その理由を伺ったうえで、=~ を以下と同じ挙動を持つメソッドとして追加することを提案するかどうか決めたいです。 class Pathname def =~(pattern) self.to_s =~ pattern end end -- http://redmine.ruby-lang.org