typecode=

typecode=(typecode)
Instance Public methods

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://john@ftp.example.com/my_file.img")
#=> #<URI::FTP:0x00000000923650 URL:ftp://john@ftp.example.com/my_file.img>
uri.typecode = "i"
# =>  "i"
uri
#=> #<URI::FTP:0x00000000923650 URL:ftp://john@ftp.example.com/my_file.img;type=i>
doc_ruby_on_rails
2015-06-10 03:41:54
Comments
Leave a Comment

Please login to continue.