Results for: "pstore"

Register a Gem::Specification for default gem.

Two formats for the specification are supported:

Is this tar entry a directory?

No documentation available
ptr.to_str        => string
ptr.to_str(len)   => string

Returns the pointer contents as a string.

When called with no arguments, this method will return the contents with the length of this pointer’s size.

When called with len, a string of len bytes will be returned.

See to_s

Performs a Miller-Rabin primality test. This is same as prime? except this first attempts trial divisions with some small primes.

Parameters

No documentation available

Emit a scalar with value and tag

Emit a sequence with list and tag

Emit a sequence with map and tag

Emit an arbitrary object obj and tag

Called when the YAML stream ends

No documentation available

End a stream emission

See Psych::Handler#end_stream

No documentation available

Returns true if the stream is finished.

Returns true if stat is readable by the real user id of this process.

File.stat("testfile").readable_real?   #=> true

If stat is readable by others, returns an integer representing the file permission bits of stat. Returns nil otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2).

m = File.stat("/etc/passwd").world_readable?  #=> 420
sprintf("%o", m)                              #=> "644"

Routes respond_to? to the referenced remote object.

Stop this server.

Routes respond_to? to the referenced remote object.

No documentation available

Returns the eigenvector matrix V

No documentation available

Posts HTML form data to the specified URI object. The form data must be provided as a Hash mapping from String to String. Example:

{ "cmd" => "search", "q" => "ruby", "max" => "50" }

This method also does Basic Authentication iff url.user exists. But userinfo for authentication is deprecated (RFC3986). So this feature will be removed.

Example:

require 'net/http'
require 'uri'

Net::HTTP.post_form URI('http://www.example.com/search.cgi'),
                    { "q" => "ruby", "max" => "50" }

Sends a GET request to the path. Returns the response as a Net::HTTPResponse object.

When called with a block, passes an HTTPResponse object to the block. The body of the response will not have been read yet; the block can process it using HTTPResponse#read_body, if desired.

Returns the response.

This method never raises Net::* exceptions.

response = http.request_get('/index.html')
# The entity body is already read in this case.
p response['content-type']
puts response.body

# Using a block
http.request_get('/index.html') {|response|
  p response['content-type']
  response.read_body do |str|   # read body now
    print str
  end
}
Search took: 4ms  ·  Total Results: 3363