prepend_prefix(prefix, relpath) private

No documentation

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

Hide source
# File ext/pathname/lib/pathname.rb, line 64
  def prepend_prefix(prefix, relpath)
    if relpath.empty?
      File.dirname(prefix)
    elsif /#{SEPARATOR_PAT}/ =~ prefix
      prefix = File.dirname(prefix)
      prefix = File.join(prefix, "") if File.basename(prefix + 'a') != 'a'
      prefix + relpath
    else
      prefix + relpath
    end
  end
Register or log in to add new notes.