Flowdock
del_trailing_separator(path) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/pathname.rb, line 385
  def del_trailing_separator(path)
    if r = chop_basename(path)
      pre, basename = r
      pre + basename
    elsif /#{SEPARATOR_PAT}+\z/o =~ path
      $` + File.dirname(path)[/#{SEPARATOR_PAT}*\z/o]
    else
      path
    end
  end
Register or log in to add new notes.