Returns the full path for an HTTP
request, as required by Net::HTTP::Get
.
If the URI
contains a query, the full path is URI#path + ‘?’ + URI#query. Otherwise, the path is simply URI#path.
Example:
uri = URI::HTTP.build(path: '/foo/bar', query: 'test=true') uri.request_uri # => "/foo/bar?test=true"
Return the byte offset of the start of the line corresponding to the given byte offset.
Binary search through the offsets to find the line number for the given byte offset.
These are the comments that are associated with this location that exist before the start of this location.
Attach a comment to the leading comments of this location.
The line number where this location starts.
Implement the hash pattern matching interface for Location
.
Implement the pretty print interface for Location
.
Implement the hash pattern matching interface for Comment
.
Implement the hash pattern matching interface for MagicComment
.
Implement the hash pattern matching interface for ParseError
.
Implement the hash pattern matching interface for ParseWarning
.
Implement the hash pattern matching interface for Result
.
Implement the hash pattern matching interface for ParseResult
.
Implement the hash pattern matching interface for LexResult
.
Implement the hash pattern matching interface for ParseLexResult
.
Implement the hash pattern matching interface for Token
.
Implement the pretty print interface for Token
.
Override to display the default values of the command options. (similar to arguments
, but displays the default values).
For example:
def defaults_str --no-gems-first --no-all end
Extracts only the bin/ files from the gem into the gem directory. This is used by default gems to allow a gem-aware stub to function without the full gem installed.