Project

General

Profile

Feature #11082 ยป pathname.rb.patch

hsbt (Hiroshi SHIBATA), 04/21/2015 11:59 AM

View differences:

ext/pathname/lib/pathname.rb
class Pathname
# :stopdoc:
if RUBY_VERSION < "1.9"
TO_PATH = :to_str
else
# to_path is implemented so Pathname objects are usable with File.open, etc.
TO_PATH = :to_path
end
# to_path is implemented so Pathname objects are usable with File.open, etc.
TO_PATH = :to_path
SAME_PATHS = if File::FNM_SYSCASE.nonzero?
# Avoid #zero? here because #casecmp can return nil.
    (1-1/1)