用法
typecode=(typecode)
参数
v
说明
类型代码 v
的公共设置器(带有验证)。
用法
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>
相关用法
- Ruby URI::FTP.build用法及代码示例
- Ruby URI::File.build用法及代码示例
- Ruby URI::Generic.fragment用法及代码示例
- Ruby URI::Generic.scheme=用法及代码示例
- Ruby URI::WS.build用法及代码示例
- Ruby URI::Generic.path用法及代码示例
- Ruby URI::MailTo.to_mailtext用法及代码示例
- Ruby URI::Generic.query=用法及代码示例
- Ruby URI::Generic.host=用法及代码示例
- Ruby URI::WS.request_uri用法及代码示例
- Ruby URI::HTTP.origin用法及代码示例
- Ruby URI::Generic.hostname用法及代码示例
- Ruby URI::Generic.host用法及代码示例
- Ruby URI::HTTP.authority用法及代码示例
- Ruby URI::Generic.fragment=用法及代码示例
- Ruby URI::Generic.coerce用法及代码示例
- Ruby URI::RFC2396_Parser.new用法及代码示例
- Ruby URI::Generic.password=用法及代码示例
- Ruby URI::Generic.hierarchical?用法及代码示例
- Ruby URI::Generic.user=用法及代码示例
- Ruby URI::Generic.port用法及代码示例
- Ruby URI::Generic.opaque用法及代码示例
- Ruby URI::Generic.hostname=用法及代码示例
- Ruby URI::Generic.path=用法及代码示例
- Ruby URI::Generic.merge用法及代码示例
注:本文由纯净天空筛选整理自ruby-lang.org大神的英文原创作品 URI::FTP.typecode=。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。