Results for: "String# "

Returns a string representation of the request:

Net::HTTP::Post.new(uri).inspect # => "#<Net::HTTP::Post POST>"
No documentation available
No documentation available
No documentation available

Description

Returns the authority for an HTTP uri, as defined in www.rfc-editor.org/rfc/rfc3986#section-3.2.

Example:

URI::HTTP.build(host: 'www.example.com', path: '/foo/bar').authority #=> "www.example.com"
URI::HTTP.build(host: 'www.example.com', port: 8000, path: '/foo/bar').authority #=> "www.example.com:8000"
URI::HTTP.build(host: 'www.example.com', port: 80, path: '/foo/bar').authority #=> "www.example.com"

This is used as a predicate, and ought to be called first.

Mirrors the C extension’s StringQuery::constant? method.

Whether or not this string is a valid constant name.

Returns the value of the node as an IntegerNode or a FloatNode. This method is deprecated in favor of value or numerator/#denominator.

Returns the lines of the source code as an array of strings.

Binary search through the offsets to find the line number for the given byte offset.

Returns a string representation of this location.

Returns a new location that stretches from this location to the given other location. Raises an error if this location is not before the other location or if they don’t share the same source.

Join this location with the first occurrence of the string in the source that occurs after this location on the same line, and return the new location. This will raise an error if the string does not exist.

Returns a string representation of this comment.

Returns a string representation of this comment.

Returns a string representation of this magic comment.

Returns a string representation of this error.

Returns a string representation of this warning.

Returns a string representation of this token.

Look up the typeclass DNS resource of name.

name must be a Resolv::DNS::Name or a String.

typeclass should be one of the following:

Returned resource is represented as a Resolv::DNS::Resource instance, i.e. Resolv::DNS::Resource::IN::A.

Looks up all typeclass DNS resources for name. See getresource for argument details.

Returns the list of plugins in this spec.

Whether this specification is stubbed - i.e. we have information about the gem from a stub line, without having to evaluate the entire gemspec file.

True if long begins with the characters from short.

Search took: 2ms  ·  Total Results: 2656