method
has_trailing_separator?
ruby latest stable - Class:
Pathname
has_trailing_separator?(path)private
has_trailing_separator?(path) -> bool
# File ext/pathname/lib/pathname.rb, line 124
def has_trailing_separator?(path) # :nodoc:
if r = chop_basename(path)
pre, basename = r
pre.length + basename.length < path.length
else
false
end
end