Base class of exceptions from OptionParser
.
Raises when ambiguously completable string is encountered.
Raises when there is an argument for a switch which takes no argument.
Raises when a switch with mandatory argument has no argument.
Raises when the given argument does not match required format.
An implementation of PseudoPrimeGenerator
which uses a prime table generated by trial division.
Generates all integers which are greater than 2 and are not divisible by either 2 or 3.
This is a pseudo-prime generator, suitable on checking primality of an integer by brute force method.
Indicates a timeout resolving a name or address.
This class needs:
Documentation
Work! Not all types of attlists are intelligently parsed, so we just
spew back out what we get in. This works, but it would be better if we formatted the output ourselves.
AttlistDecls provide just enough support to allow namespace declarations. If you need some sort of generalized support, or have an interesting idea about how to map the hideous, terrible design of DTD
AttlistDecls onto an intuitive Ruby interface, let me know. I’m desperate for anything to make DTDs more palateable.
Defines an Element
Attribute
; IE, a attribute=value pair, as in: <element attribute=“value”/>. Attributes
can be in their own namespaces. General users of REXML
will not interact with the Attribute
class much.
Represents an XML
comment; that is, text between <!– … –>
This is an abstract class. You never use this directly; it serves as a parent class for the specific declarations.
Represents a full XML
document, including PIs, a doctype, etc. A Document
has a single child that can be accessed by root(). Note that if you want to have an XML
declaration written for a document you create, you must add one; REXML
documents do not write a default declaration for you. See |DECLARATION| and |write|.
Represents a tagged XML
element. Elements
are characterized by having children, attributes, and names, and can themselves be children.
A class which provides filtering of children for Elements
, and XPath
search support. You are expected to only encounter this class as the element.elements
object. Therefore, you are not expected to instantiate this yourself.
A class that defines the set of Attributes
of an Element
and provides operations for accessing elements in that set.
A parent has children, and has methods for accessing them. The Parent
class is never encountered except as the superclass for some other object.
Templates are used to match tuples in Rinda
.