Results for: "OptionParser"

Response class for Internal Server Error responses (status code 500).

An unexpected condition was encountered and no more specific message is suitable. See 500 Internal Server Error.

No documentation available

A set of rule and position in it’s RHS. Note that the number of pointers is more than rule’s RHS array, because pointer points right edge of the final symbol when reducing.

No documentation available

Raised when trying to activate a gem, and the gem exists on the system, but not the requested version. Instead of rescuing from this class, make sure to rescue from the superclass Gem::LoadError to catch all types of load errors.

Raised when attempting to uninstall a gem that isn’t in GEM_HOME.

Raised by Gem::Validator when something is not right in a gem.

Class that parses String’s into URI’s.

It contains a Hash set of patterns and Regexp’s that match and validate.

ConditionVariable objects augment class Mutex. Using condition variables, it is possible to suspend while in the middle of a critical section until a resource becomes available.

Example:

mutex = Thread::Mutex.new
resource = Thread::ConditionVariable.new

a = Thread.new {
   mutex.synchronize {
     # Thread 'a' now needs the resource
     resource.wait(mutex)
     # 'a' can now have the resource
   }
}

b = Thread.new {
   mutex.synchronize {
     # Thread 'b' has finished using the resource
     resource.signal
   }
}

A mixin that provides methods for parsing C struct and prototype signatures.

Example

require 'fiddle/import'

include Fiddle::CParser
  #=> Object

parse_ctype('int')
  #=> Fiddle::TYPE_INT

parse_struct_signature(['int i', 'char c'])
  #=> [[Fiddle::TYPE_INT, Fiddle::TYPE_CHAR], ["i", "c"]]

parse_signature('double sum(double, double)')
  #=> ["sum", Fiddle::TYPE_DOUBLE, [Fiddle::TYPE_DOUBLE, Fiddle::TYPE_DOUBLE]]
No documentation available

Mixin methods for install and update options for Gem::Commands

Mixin methods for local and remote Gem::Command options.

No documentation available

The InstructionSequence class represents a compiled sequence of instructions for the Virtual Machine used in MRI. Not all implementations of Ruby may implement this class, and for the implementations that implement it, the methods defined and behavior of the methods can change in any version.

With it, you can get a handle to the instructions that make up a method or a proc, compile strings of Ruby code down to VM instructions, and disassemble instruction sequences to strings for easy inspection. It is mostly useful if you want to learn how YARV works, but it also lets you control various settings for the Ruby iseq compiler.

You can find the source for the VM instructions in insns.def in the Ruby source.

The instruction sequence results will almost certainly change as Ruby changes, so example output in this documentation may be different from what you see.

Of course, this class is MRI specific.

No documentation available

Parent class for server error (5xx) HTTP response classes.

A server error response indicates that the server failed to fulfill a request.

References:

Response class for Partial Content responses (status code 206).

The Partial Content response indicates that the server is delivering only part of the resource (byte serving) due to a Range header in the request. See 206 Partial Content.

Response class for Proxy Authentication Required responses (status code 407).

The client must first authenticate itself with the proxy. See 407 Proxy Authentication Required.

Response class for Precondition Failed responses (status code 412).

The server does not meet one of the preconditions specified in the request headers. See 412 Precondition Failed.

Response class for Precondition Required responses (status code 428).

The origin server requires the request to be conditional. See 428 Precondition Required.

Response class for HTTP Version Not Supported responses (status code 505).

The server does not support the HTTP version used in the request. See 505 HTTP Version Not Supported.

Response class for Network Authentication Required responses (status code 511).

The client needs to authenticate to gain network access. See 511 Network Authentication Required.

No documentation available
No documentation available
Search took: 3ms  ·  Total Results: 3967