The source code that this location represents starting from the beginning of the line that this location starts on to the end of the line that this location ends on.
The line number where this location starts.
The line number where this location ends.
Implement the pretty print interface for Location
.
Returns a string representation of the syntax tree with the errors displayed inline.
Implement the pretty print interface for Token
.
Shortcut for combining two procs into one that returns true if both return true.
Shortcut for combining two procs into one that returns true if either returns true.
Used by the Resolver, the protocol to use a AvailableSet
as a search Set
.
Call the given block when invoked.
Normal command invocations just executes the execute
method of the command. Specifying an invocation block allows the test methods to override the normal action of a command to determine that it has been invoked correctly.
Register the Symbol
command
as a gem command.
Unregister the Symbol
command
as a gem command.
Return a sorted list of all command names as strings.
Does this dependency match spec
?
NOTE: This is not a convenience method. Unlike match?
this method returns true when spec
is a prerelease version even if this dependency is not a prerelease dependency.
Defaults to use Ruby’s program prefix and suffix.
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.
Indicate if this NameTuple
matches the current platform.