D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
URI
/
Filename :
for-c.ri
back
Copy
U:RDoc::AnyMethod[iI"for:ETI" URI::for;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"LReturns a new object constructed from the given +scheme+, +arguments+, ;TI"and +default+:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"NThe new object is an instance of <tt>URI.scheme_list[scheme.upcase]</tt>.;To;;0; [o; ; [I"@The object is initialized by calling the class initializer ;TI"%using +scheme+ and +arguments+. ;TI"See URI::Generic.new.;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [ I"zvalues = ['john.doe', 'www.example.com', '123', nil, '/forum/questions/', nil, 'tag=networking&order=newest', 'top'] ;TI"URI.for('https', *values) ;TI"n# => #<URI::HTTPS https://john.doe@www.example.com:123/forum/questions/?tag=networking&order=newest#top> ;TI"1URI.for('foo', *values, default: URI::HTTP) ;TI"j# => #<URI::HTTP foo://john.doe@www.example.com:123/forum/questions/?tag=networking&order=newest#top>;T:@format0: @fileI"lib/uri/common.rb;T:0@omit_headings_from_table_of_contents_below000[ I"+(scheme, *arguments, default: Generic);T@(FI"URI;TcRDoc::NormalModule00