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