Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
URI::FTP#typecode=
typecode=(typecode)
lib/uri/ftp.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/uri/ftp.rb, line 208
def typecode=(typecode)
check_typecode(typecode)
set_typecode(typecode)
typecode
end
Args
v
Description
Public setter for the typecode v (with validation).
See also URI::FTP.check_typecode.
Usage
Example
require 'uri' uri = URI.parse("ftp://[email protected]/my_file.img") #=> #<URI::FTP ftp://[email protected]/my_file.img> uri.typecode = "i" uri #=> #<URI::FTP ftp://[email protected]/my_file.img;type=i>