D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
URI
/
Filename :
open-c.ri
back
Copy
U:RDoc::AnyMethod[iI" open:ETI"URI::open;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"<Allows the opening of various resources including URIs.;To:RDoc::Markup::BlankLine o; ; [I"NIf the first argument responds to the 'open' method, 'open' is called on ;TI"'it with the rest of the arguments.;T@o; ; [I"dIf the first argument is a string that begins with <code>(protocol)://</code>, it is parsed by ;TI"EURI.parse. If the parsed object responds to the 'open' method, ;TI";'open' is called on it with the rest of the arguments.;T@o; ; [I"&Otherwise, Kernel#open is called.;T@o; ; [I"IOpenURI::OpenRead#open provides URI::HTTP#open, URI::HTTPS#open and ;TI" URI::FTP#open, Kernel#open.;T@o; ; [I"JWe can accept URIs and strings that begin with http://, https:// and ;TI"Qftp://. In these cases, the opened file object is extended by OpenURI::Meta.;T: @fileI"lib/open-uri.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(name, *rest, &block);T@#TI"URI;TcRDoc::NormalModule00