Feature #710 ยป pathname-match.patch
| 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
|
||