has_elements?

has_elements?() Instance Public methods Evaluates to true if this element has at least one child Element doc = Document.new "<a><b/><c>Text</c></a>" doc.root.has_elements # -> true doc.elements["/a/b"].has_elements # -> false doc.elements["/a/c"].has_elements # -> false

new

new(*sequences) Class Public methods

column_cget

column_cget(tagOrId, option) Instance Public methods Also aliased as: columncget

set_operation

set_operation(op) Class Public methods

show_mode

show_mode() Instance Public methods

deflate 2

z.deflate(string, flush = Zlib::NO_FLUSH) â Stringz.deflate(string, flush = Zlib::NO_FLUSH) { |chunk| ... } â nil Instance Public methods Inputs string into the deflate stream and returns the output from the stream. On calling this method, both the input and the output buffers of the stream are flushed. If string is nil, this method finishes the stream, just like Zlib::ZStream#finish. If a block is given consecutive deflated chunks from the string are yielded to

pluralize

pluralize(word, locale = :en) Instance Public methods Returns the plural form of the word in the string. If passed an optional locale parameter, the word will be pluralized using rules defined for that language. By default, this parameter is set to :en. 'post'.pluralize # => "posts" 'octopus'.pluralize # => "octopi" 'sheep'.pluralize # => "sheep" 'words'.pluralize # => "words" 'CamelOctopus'.pluralize # => "CamelOctopi"

namespace

namespace(prefix=nil) Instance Public methods Evalutas to the URI for a prefix, or the empty string if no such namespace is declared for this element. Evaluates recursively for ancestors. Returns the default namespace, if there is one. prefix the prefix to search for. If not supplied, returns the default namespace if one exists Returns the namespace URI as a String, or nil if no such namespace exists. If the namespace is undefined, returns an empty string doc = Document.

numerator

rat.numerator â integer Instance Public methods Returns the numerator. Rational(7).numerator #=> 7 Rational(7, 1).numerator #=> 7 Rational(9, -4).numerator #=> -9 Rational(-2, -10).numerator #=> 1

find_class_method_named

find_class_method_named(name) Instance Public methods Finds a class method with name in this context