Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
URI::FTP#set_path
(::String? v) -> ::String?
set_path(v)
lib/uri/ftp.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/uri/ftp.rb, line 245
def set_path(v)
super("/" + v.sub(/^\//, "%2F"))
end
Private setter for the path of the URI::FTP.