Results for: "OptionParser"

Raised when the data length recorded in the gzip file footer is not equivalent to the length of the actual uncompressed data.

Raised when an operation would resize or re-allocate a locked buffer.

Raised if you try to access a buffer slice which no longer references a valid memory range of the underlying source.

Raised if the mask given to a binary operation is invalid, e.g. zero length or overlaps the target buffer.

No documentation available

Class for representing HTTP method PATCH:

require 'net/http'
uri = URI('http://example.com')
hostname = uri.hostname # => "example.com"
uri.path = '/posts'
req = Net::HTTP::Patch.new(uri) # => #<Net::HTTP::Patch PATCH>
req.body = '{"title": "foo","body": "bar","userId": 1}'
req.content_type = 'application/json'
res = Net::HTTP.start(hostname) do |http|
  http.request(req)
end

See Request Headers.

Properties:

Related:

Class for representing WebDAV method PROPFIND:

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

See Request Headers.

Related:

Class for representing WebDAV method COPY:

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

See Request Headers.

Related:

Ripper doesn’t include the rest of the token in the event, so we need to trim it down to just the content on the first line when comparing.

A directive in the pack template language.

A constant field represents a constant value on a node. Effectively, it represents an identifier found within the source. It resolves to a symbol in Ruby.

A constant list field represents a list of constant values on a node. It resolves to an array of symbols in Ruby.

An integer field represents an integer value. It is used to represent the value of an integer literal, the depth of local variables, and the number of a numbered reference. It resolves to an Integer in Ruby.

A source that is represented by a file path.

A field that represents the file path.

A field representing the start and end byte offsets.

A field representing the start and end code unit offsets.

This class provides a compatibility layer between prism and Ripper. It functions by parsing the entire tree first and then walking it and executing each of the Ripper callbacks as it goes. To use this class, you treat ‘Prism::Translation::Ripper` effectively as you would treat the `Ripper` class.

Note that this class will serve the most common use cases, but Ripper’s API is extensive and undocumented. It relies on reporting the state of the parser at any given time. We do our best to replicate that here, but because it is a different architecture it is not possible to perfectly replicate the behavior of Ripper.

The main known difference is that we may omit dispatching some events in some cases. This impacts the following events:

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
Search took: 15ms  ·  Total Results: 6041