Results for: "OptionParser"

Request query as a Hash

Closes the logger (also closes the log device associated to the logger)

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

Stops the server from accepting new connections.

Sets the Net::HTTP#read_timeout and Net::HTTP#open_timeout to new_timeout

Changes the password for the Basic Authentication header to new_password

You can use this method to execute several methods on a XMLRPC server which support the multi-call extension.

s.multicall(
  ['michael.add', 3, 4],
  ['michael.sub', 4, 5]
)
# => [7, -1]

Same as XMLRPC::Client#multicall, but returns two parameters instead of raising an XMLRPC::FaultException.

See XMLRPC::Client#call2

Converts a Ruby object into a XML-RPC <value> tag

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 12.

Set value as the new date/time component.

Raises an ArgumentError if the given value isn’t between 0 and 59.

Alias for XMLRPC::DateTime#month=.

No documentation available

Returns a Hash (not a DBM database) created by using each value in the database as a key, with the corresponding key as its value.

Note that all values in the hash will be Strings, but the keys will be actual objects.

If a block is provided, returns a new array containing [key, value] pairs for which the block returns true.

Otherwise, same as values_at

Returns true if this process is stopped. This is only returned if the corresponding wait call had the WUNTRACED flag set.

Returns the number of the signal that caused stat to stop (or nil if self is not stopped).

Returns the number of the signal that caused stat to terminate (or nil if self was not terminated by an uncaught signal).

Search took: 9ms  ·  Total Results: 4164