method
typecode=
typecode=(typecode)
public
Args
v |
Description
Public setter for the typecode v (with validation).
See also URI::FTP.check_typecode.
Usage
require 'uri' uri = URI.parse("ftp://john@ftp.example.com/my_file.img") #=> #<URI::FTP ftp://john@ftp.example.com/my_file.img> uri.typecode = "i" uri #=> #<URI::FTP ftp://john@ftp.example.com/my_file.img;type=i>