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:
Resolv::DNS::Resource::IN::ANY
Resolv::DNS::Resource::IN::CNAME
Resolv::DNS::Resource::IN::HINFO
Resolv::DNS::Resource::IN::MINFO
Resolv::DNS::Resource::IN::MX
Resolv::DNS::Resource::IN::NS
Resolv::DNS::Resource::IN::PTR
Resolv::DNS::Resource::IN::SOA
Resolv::DNS::Resource::IN::TXT
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
.
Override to display a longer description of what this command does.
Invoke the command with the given list of arguments.
True if the backtrace option has been specified, or debug is on.
Writes out this config file, replacing its source.
Generates a !
line for bin_file_name
‘s wrapper copying arguments if necessary.
If the :custom_shebang config is set, then it is used as a template for how to create the shebang used for to run a gem’s executables.
The template supports 4 expansions:
$env the path to the unix env utility $ruby the path to the currently running ruby interpreter $exec the path to the gem's executable $name the name of the gem the executable is for
Creates a new package that will read or write to the file gem
.
Verifies that this gem:
Contains a valid gem specification
Contains a contents archive
The contents archive is not corrupt
After verification the gem specification from the gem is available from spec
Initialization tasks without the “yield self” or define operations.
Create the Rake tasks and actions specified by this Gem::PackageTask
. (define
is automatically called if a block is given to new
).