Results for: "tally"

Switch that can omit argument.

A Resolv::LOC::Alt

No documentation available

Using the Pull Parser

This API is experimental, and subject to change.

parser = PullParser.new( "<a>text<b att='val'/>txet</a>" )
while parser.has_next?
  res = parser.next
  puts res[1]['att'] if res.start_tag? and res[0] == 'b'
end

See the PullEvent class for information on the content of the results. The data is identical to the arguments passed for the various events to the StreamListener API.

Notice that:

parser = PullParser.new( "<a>BAD DOCUMENT" )
while parser.has_next?
  res = parser.next
  raise res[1] if res.error?
end

Nat Price gave me some good ideas for the API.

A parsing event. The contents of the event are accessed as an +Array?, and the type is given either by the …? methods, or by accessing the type accessor. The contents of this object vary from event to event, but are identical to the arguments passed to +StreamListener+s for each event.

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

A header for a tar file

TarReader reads tar files and allows iteration over their items

A test case for Gem::Package::Tar* classes

Allows writing of tar files

A LocalSpecification comes from a .gem file on the local filesystem.

No documentation available

The local source finds gems in the current directory for fulfilling dependencies.

The StaticSet is a static set of gem specifications used for testing only. It is available by requiring Gem::TestCase.

RFC 2617 Digest Access Authentication for WEBrick

Use this class to add digest authentication to a WEBrick servlet.

Here is an example of how to set up DigestAuth:

config = { :Realm => 'DigestAuth example realm' }

htdigest = WEBrick::HTTPAuth::Htdigest.new 'my_password_file'
htdigest.set_passwd config[:Realm], 'username', 'password'
htdigest.flush

config[:UserDB] = htdigest

digest_auth = WEBrick::HTTPAuth::DigestAuth.new config

When using this as with a servlet be sure not to create a new DigestAuth object in the servlet’s initialize. By default WEBrick creates a new servlet instance for every request and the DigestAuth object must be used across requests.

Digest authentication for proxy servers. See DigestAuth for details.

No documentation available

Root of the HTTP status class hierarchy

Stores multipart form data. FormData objects are created when WEBrick::HTTPUtils.parse_form_data is called.

Common validators of number and nz_number types

Search took: 8ms  ·  Total Results: 1245