Results for: "OptionParser"

Internal use. An implementation of prime table by trial division method.

No documentation available

A parent has children, and has methods for accessing them. The Parent class is never encountered except as the superclass for some other object.

An SimpleRenewer allows a TupleSpace to check if a TupleEntry is still alive.

No documentation available
No documentation available

RSS, being an XML-based format, has namespace support. If two namespaces are declared with the same name, an OverlappedPrefixError will be raised.

Raised when a required variable is not set.

Raised when there are conflicting gem specs loaded

No documentation available

Raised by Gem::Resolver when dependencies conflict and create the inability to find a valid possible spec for a request.

Raised by Resolver when a dependency requests a gem for which there is no spec.

A test case for Gem::Installer.

No documentation available

Raised by Timeout#timeout when the block times out.

Not a URI component.

Remote host reset the connection request.

An HTTP response. This is filled in by the service or do_* methods of a WEBrick HTTP Servlet.

Marshalling of XMLRPC::Create#methodCall and XMLRPC::Create#methodResponse

Implements a servlet for use with WEBrick, a pure Ruby (HTTP) server framework.

require "webrick"
require "xmlrpc/server"

s = XMLRPC::WEBrickServlet.new
s.add_handler("michael.add") do |a,b|
  a + b
end

s.add_handler("michael.div") do |a,b|
  if b == 0
    raise XMLRPC::FaultException.new(1, "division by zero")
  else
    a / b
  end
end

s.set_default_handler do |name, *args|
  raise XMLRPC::FaultException.new(-99, "Method #{name} missing" +
                                   " or wrong number of parameters!")
end

httpserver = WEBrick::HTTPServer.new(:Port => 8080)
httpserver.mount("/RPC2", s)
trap("HUP") { httpserver.shutdown }   # use 1 instead of "HUP" on Windows
httpserver.start
No documentation available

Raised by Encoding and String methods when the string being transcoded contains a byte invalid for the either the source or target encoding.

Raised by Timeout#timeout when the block times out.

No documentation available

Mixin module providing HTML generation methods.

For example,

cgi.a("http://www.example.com") { "Example" }
  # => "<A HREF=\"http://www.example.com\">Example</A>"

Modules Html3, Html4, etc., contain more basic HTML-generation methods (#title, #h1, etc.).

See class CGI for a detailed example.

Search took: 22ms  ·  Total Results: 4164