= private = protected
chop_basename(path)
chop_basename(path) -> [pre-basename, basename] or nil
# File ext/pathname/lib/pathname.rb, line 41 def chop_basename(path) # :nodoc: base = File.basename(path) if /\A#{SEPARATOR_PAT}?\z/.match?(base) return nil else return path[0, path.rindex(base)], base end end