Project

General

Profile

Feature #710 ยป pathname-match.patch

quix (James M. Lawrence), 11/04/2008 03:13 PM

View differences:

lib/pathname.rb (working copy)
@path.tr('/', "\0") <=> other.to_s.tr('/', "\0")
end
def =~(pattern)
to_s =~ pattern
end
def hash # :nodoc:
@path.hash
end
    (1-1/1)