Results for: "Array.new"

Args

str

String to remove escapes from

unsafe

Regexp to apply. Defaults to self.regexp

Description

Removes escapes from str

Args

uri

String

Description

parses uri and constructs either matching URI scheme object (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:0x00000000b9e7e8 URL: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

str

String to remove escapes from

unsafe

Regexp to apply. Defaults to self.regexp

Description

Removes escapes from str

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.

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

Performs the standard operations for daemonizing a process. Runs a block, if given.

Starts the server and runs the block for each connection. This method does not return until the server is stopped from a signal handler or another thread using stop or shutdown.

If the block raises a subclass of StandardError the exception is logged and ignored. If an IOError or Errno::EBADF exception is raised the exception is ignored. If an Exception subclass is raised the exception is logged and re-raised which stops the server.

To completely shut down a server call shutdown from ensure:

server = WEBrick::GenericServer.new
# or WEBrick::HTTPServer.new

begin
  server.start
ensure
  server.shutdown
end

Set value as the new date/time component.

Raises ArgumentError if the given value is out of range, or in the case of XMLRPC::DateTime#year= if value is not of type Integer.

Set value as the new date/time component.

Raises an ArgumentError if the given value isn’t between 1 and 31.

Returns true if this lock is currently held by current thread.

Removes all objects from the queue.

Removes all objects from the queue.

See IO#readchar.

See IO#readline.

Similar to read, but raises EOFError at end of string instead of returning nil, as well as IO#sysread does.

Reads at most maxlen bytes from the stream. If buf is provided it must reference a string which will receive the data.

See IO#readpartial for full details.

Reads lines from the stream which are separated by eol.

See also gets

Reads a line from the stream which is separated by eol.

Raises EOFError if at end of file.

Search took: 5ms  ·  Total Results: 2422