Results for: "partition"

A C struct wrapper

Timer id conversion keeps objects alive for a certain amount of time after their last access. The default time period is 600 seconds and can be changed upon initialization.

To use TimerIdConv:

DRb.install_id_conv TimerIdConv.new 60 # one minute
No documentation available

418 I’m a teapot - RFC 2324; a joke RFC 420 Enhance Your Calm - Twitter

No documentation available
No documentation available

God, I hate DTDs. I really do. Why this idiot standard still plagues us is beyond me.

You don’t want to use this class. Really. Use XPath, which is a wrapper for this class. Believe me. You don’t want to poke around in here. There is strange, dark magic at work in this code. Beware. Go back! Go back while you still can!

Raised when an unknown conversion error occurs.

Raised when a conversion failure occurs.

Raised when a RSS::Maker attempts to use an unknown maker.

No documentation available

Raised by Encoding and String methods when a transcoding operation fails.

No documentation available

Defines ParserWriterChooseMixin, which makes it possible to choose a different XMLWriter and/or XMLParser then the default one.

The Mixin is used in client.rb (class XMLRPC::Client) and server.rb (class XMLRPC::BasicServer)

No documentation available
No documentation available

C union shell

This exception is raised if a parser error occurs.

This exception is raised if the nesting of parsed data structures is too deep.

This exception is raised if a generator or unparser error occurs.

YAML event parser class. This class parses a YAML document and calls events on the handler that is passed to the constructor. The events can be used for things such as constructing a YAML AST or deserializing YAML documents. It can even be fed back to Psych::Emitter to emit the same document that was parsed.

See Psych::Handler for documentation on the events that Psych::Parser emits.

Here is an example that prints out ever scalar found in a YAML document:

# Handler for detecting scalar values
class ScalarHandler < Psych::Handler
  def scalar value, anchor, tag, plain, quoted, style
    puts value
  end
end

parser = Psych::Parser.new(ScalarHandler.new)
parser.parse(yaml_document)

Here is an example that feeds the parser back in to Psych::Emitter. The YAML document is read from STDIN and written back out to STDERR:

parser = Psych::Parser.new(Psych::Emitter.new($stderr))
parser.parse($stdin)

Psych uses Psych::Parser in combination with Psych::TreeBuilder to construct an AST of the parsed YAML document.

No documentation available

Subclass of Zlib::Error

When zlib returns a Z_VERSION_ERROR, usually if the zlib library version is incompatible with the version assumed by the caller.

No documentation available
Search took: 5ms  ·  Total Results: 2899