method

typecode=

v2_1_10 - Show latest stable - Class: URI::FTP
typecode=(typecode)
public

Args

v

String

Description

public setter for the typecode v. (with validation)

see also URI::FTP.check_typecode

Usage

require 'uri'

uri = URI.parse("ftp://[email protected]/my_file.img")
#=> #<URI::FTP:0x00000000923650 URL:ftp://[email protected]/my_file.img>
uri.typecode = "i"
# =>  "i"
uri
#=> #<URI::FTP:0x00000000923650 URL:ftp://[email protected]/my_file.img;type=i>