Results for: "Array"

True if the backtrace option has been specified, or debug is on.

No documentation available
No documentation available

True if the version string matches RubyGems’ requirements.

Removes all sources from the SourceList.

teardown restores the process to its original state and removes the tempdir unless the KEEP_FILES environment variable was set.

Prints a formatted backtrace to the errors stream if backtraces are enabled.

Display a statement.

Executes a block as self

Example:

sh.transact { system("ls", "-l") | head > STDOUT }
No documentation available

Returns the parser to be used.

Unless a URI::Parser is defined, DEFAULT_PARSER is used.

Checks the fragment v component against the URI::Parser Regexp for :FRAGMENT.

Args

v

String

Description

Public setter for the fragment component v (with validation).

Usage

require 'uri'

uri = URI.parse("http://my.example.com/?id=25#time=1305212049")
uri.fragment = "time=1305212086"
uri.to_s  #=> "http://my.example.com/?id=25#time=1305212086"

Args

uri

String

Description

Parses uri and constructs either matching URI scheme object (File, FTP, HTTP, HTTPS, LDAP, LDAPS, or MailTo) or URI::Generic.

Usage

p = URI::Parser.new
p.parse("ldap://ldap.example.com/dc=example?user=john")
#=> #<URI::LDAP ldap://ldap.example.com/dc=example?user=john>

Args

str

String to search

schemes

Patterns to apply to str

Description

Attempts to parse and merge a set of URIs. If no block given, then returns the result, else it calls block for each element in result.

See also URI::Parser.make_regexp.

Args

uri

String

Description

Parses uri and constructs either matching URI scheme object (File, FTP, HTTP, HTTPS, LDAP, LDAPS, or MailTo) or URI::Generic.

Usage

p = URI::Parser.new
p.parse("ldap://ldap.example.com/dc=example?user=john")
#=> #<URI::LDAP ldap://ldap.example.com/dc=example?user=john>

Args

str

String to search

schemes

Patterns to apply to str

Description

Attempts to parse and merge a set of URIs. If no block given, then returns the result, else it calls block for each element in result.

See also URI::Parser.make_regexp.

Starts the CGI process with the given environment env and standard input and output stdin and stdout.

Parses a Cookie field sent from the user-agent. Returns an array of cookies.

Parses a request from socket. This is called internally by WEBrick::HTTPServer.

for IO.copy_stream. Note: we may return a larger string than size here; but IO.copy_stream does not care.

Shortcut for logging an ERROR message

Shortcut for logging a WARN message

Will the logger output ERROR messages?

Will the logger output WARN messages?

A SimpleServer only yields when you start it

Search took: 4ms  ·  Total Results: 1526