D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
URI
/
WS
/
Filename :
build-c.ri
back
Copy
U:RDoc::AnyMethod[iI" build:ETI"URI::WS::build;TT:publico:RDoc::Markup::Document:@parts[S:RDoc::Markup::Heading: leveli: textI"Description;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph; [I"HCreates a new URI::WS object from components, with syntax checking.;T@ o;; [I"GThe components accepted are userinfo, host, port, path, and query.;T@ o;; [I"HThe components should be provided either as an Array, or as a Hash ;TI"Dwith keys formed by preceding the component names with a colon.;T@ o;; [I"?If an Array is used, the components must be passed in the ;TI"<order <code>[userinfo, host, port, path, query]</code>.;T@ o;; [I" Example:;T@ o:RDoc::Markup::Verbatim; [I"Duri = URI::WS.build(host: 'www.example.com', path: '/foo/bar') ;TI" ;TI"Juri = URI::WS.build([nil, "www.example.com", nil, "/path", "query"]) ;T:@format0o;; [I"DCurrently, if passed userinfo components this method generates ;TI"%invalid WS URIs as per RFC 1738.;T: @fileI"lib/uri/ws.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(args);T@(TI"WS;TcRDoc::NormalClass00