def operator: () -> String
def operator: () -> String
def lparen: () -> String
?
def rparen: () -> String
?
def lparen: () -> String
?
def rparen: () -> String
?
Returns true if this comment happens on the same line as other code and false if the comment is by itself.
This can only be true for inline comments.
True if the parser encountered an error during parsing.
Parse the source and return the result.
Returns the first advertised TupleSpace
.
Override to provide details of the arguments a command takes. It should return a left-justified string, one argument per line.
For example:
def usage "#{program_name} FILE [FILE ...]" end def arguments "FILE name of file to find" end
Create on demand parser.
Wraps text
to width
True if the backtrace option has been specified, or debug is on.
Parse obj
, returning an [op, version]
pair. obj
can be a String
or a Gem::Version
.
If obj
is a String
, it can be either a full requirement specification, like ">= 1.2"
, or a simple version number, like "1.2"
.
parse("> 1.0") # => [">", Gem::Version.new("1.0")] parse("1.0") # => ["=", Gem::Version.new("1.0")] parse(Gem::Version.new("1.0")) # => ["=, Gem::Version.new("1.0")]
True if the version
string matches RubyGems’ requirements.
Removes all sources from the SourceList
.
A short summary of this gem’s description.
Recursively walk dependencies of this spec, executing the block
for each hop.
Parses uri, raising if it’s invalid
Parses uri, returning the original uri if it’s invalid