Method: Bundler::URI::FTP#to_s

Defined in:
lib/bundler/vendor/uri/lib/uri/ftp.rb

#to_sObject

Returns a String representation of the Bundler::URI::FTP.

[View source]

251
252
253
254
255
256
257
258
259
260
261
262
263
# File 'lib/bundler/vendor/uri/lib/uri/ftp.rb', line 251

def to_s
  save_path = nil
  if @typecode
    save_path = @path
    @path = @path + TYPECODE_PREFIX + @typecode
  end
  str = super
  if @typecode
    @path = save_path
  end

  return str
end