A basic dotted progress reporter.
A progress reporter that behaves nicely with threaded downloading.
Raised when multiple fields of the same type are configured on the same repository.
Includes URI::REGEXP::PATTERN
RubyVM::AbstractSyntaxTree::Location
instances are created by RubyVM::AbstractSyntaxTree::Node#locations
.
This class is MRI specific.
Generic exception class of the Timestamp
module.
Raised when the buffer cannot be allocated for some reason, or you try to use a buffer that’s not allocated.
Class for representing HTTP method POST:
require 'net/http' uri = URI('http://example.com') hostname = uri.hostname # => "example.com" uri.path = '/posts' req = Net::HTTP::Post.new(uri) # => #<Net::HTTP::Post POST> 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:
Request body: yes.
Response body: yes.
Safe: no.
Idempotent: no.
Cacheable: yes.
Related:
Net::HTTP.post
: sends POST
request, returns response object.
Net::HTTP#post
: sends POST
request, returns response object.
Class for representing WebDAV method MKCOL:
require 'net/http' uri = URI('http://example.com') hostname = uri.hostname # => "example.com" req = Net::HTTP::Mkcol.new(uri) # => #<Net::HTTP::Mkcol MKCOL> res = Net::HTTP.start(hostname) do |http| http.request(req) end
See Request Headers.
Related:
Net::HTTP#mkcol
: sends MKCOL
request, returns response object.
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:
Net::HTTP#copy
: sends COPY
request, returns response object.
Switch
that can omit argument.
When we’ve parsed the source, we have both the syntax tree and the list of comments that we found in the source. This class is responsible for walking the tree and finding the nearest location to attach each comment.
It does this by first finding the nearest locations to each comment. Locations can either come from nodes directly or from location fields on nodes. For example, a ‘ClassNode` has an overall location encompassing the entire class, but it also has a location for the `class` keyword.
Once the nearest locations are found, it determines which one to attach to. If it’s a trailing comment (a comment on the same line as other source code), it will favor attaching to the nearest location that occurs before the comment. Otherwise it will favor attaching to the nearest location that is after the comment.
A source that is represented by a string.
A field representing the start and end code unit offsets.
An abstract field used as the parent class of the two comments fields.
A field representing the leading comments.
A field representing the trailing comments.