Results for: "remove_const"

Represents an installed gem. This is used for dependency resolution.

Class for representing WebDAV method MOVE:

require 'net/http'
uri = URI('http://example.com')
hostname = uri.hostname # => "example.com"
req = Net::HTTP::Move.new(uri) # => #<Net::HTTP::Move MOVE>
res = Net::HTTP.start(hostname) do |http|
  http.request(req)
end

See Request Headers.

Related:

Raised when a bad requirement is encountered

A progress reporter that prints out messages about the current progress.

This exception is raised if a parser error occurs.

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

This class works in conjunction with Psych::Parser to build an in-memory parse tree that represents a YAML document.

Example

parser = Psych::Parser.new Psych::TreeBuilder.new
parser.parse('--- foo')
tree = parser.handler.root

See Psych::Handler for documentation on the event methods used in this class.

No documentation available

Subclass of Zlib::Error

When zlib returns a Z_MEM_ERROR, usually if there was not enough memory.

Subclass of Zlib::Error. This error is raised when the zlib stream is currently in progress.

For example:

inflater = Zlib::Inflate.new
inflater.inflate(compressed) do
  inflater.inflate(compressed) # Raises Zlib::InProgressError
end

Zlib::GzipReader is the class for reading a gzipped file. GzipReader should be used as an IO, or -IO-like, object.

Zlib::GzipReader.open('hoge.gz') {|gz|
  print gz.read
}

File.open('hoge.gz') do |f|
  gz = Zlib::GzipReader.new(f)
  print gz.read
  gz.close
end

Method Catalogue

The following methods in Zlib::GzipReader are just like their counterparts in IO, but they raise Zlib::Error or Zlib::GzipFile::Error exception if an error was found in the gzip file.

Be careful of the footer of the gzip file. A gzip file has the checksum of pre-compressed data in its footer. GzipReader checks all uncompressed data against that checksum at the following cases, and if it fails, raises Zlib::GzipFile::NoFooter, Zlib::GzipFile::CRCError, or Zlib::GzipFile::LengthError exception.

The rest of the methods are adequately described in their own documentation.

exception to wait for reading by EAGAIN. see IO.select.

exception to wait for reading by EWOULDBLOCK. see IO.select.

exception to wait for writing by EINPROGRESS. see IO.select.

The DidYouMean::Formatter is the basic, default formatter for the gem. The formatter responds to the message_for method and it returns a human readable string.

spell checker for a dictionary that has a tree structure, see doc/tree_spell_checker_api.md

Raised when the provided IP address is an invalid address.

Raised when the address family is invalid such as an address with an unsupported family, an address with an inconsistent family, or an address who’s family cannot be determined.

Raised when the address is an invalid length.

No documentation available

Response class for Created responses (status code 201).

The Created response indicates that the server has received and has fulfilled a request to create a new resource.

References:

Response class for Not Modified responses (status code 304).

Indicates that the resource has not been modified since the version specified by the request headers.

References:

Response class for Not Implemented responses (status code 501).

The server either does not recognize the request method, or it lacks the ability to fulfil the request.

References:

No documentation available
No documentation available
Search took: 6ms  ·  Total Results: 3316