Returns a Gem::StubSpecification
for installed gem named name
only returns stubs that match Gem.platforms
Return the latest specs, optionally including prerelease specs if prerelease
is true.
Sanitize a single string.
Duplicates Array
and Gem::Requirement
attributes from other_spec
so state isn’t shared.
Return a string containing a Ruby
code representation of the given object.
Returns a Gem::StubSpecification
for every specification in the record named name
only returns stubs that match Gem.platforms
Return the latest specs in the record, optionally including prerelease specs if prerelease
is true.
Terminate the application with exit code status
, running any exit handlers that might have been defined.
Return the currently matched lines as a ‘CodeBlock`
When a ‘CodeBlock` is created it will gather metadata about itself, so this is not a free conversion. Avoid allocating more CodeBlock’s than needed
Given an already existing block in the frontier, expand it to see if it contains our invalid syntax
Count source code characters
Example:
left_right = LeftRightLexCount.new left_right.count_lex(LexValue.new(1, :on_lbrace, "{", Ripper::EXPR_BEG)) left_right.count_for_char("{") # => 1 left_right.count_for_char("}") # => 0
Discards any changes that have not been committed
Returns the user component after URI
decoding.
Returns the password component after URI
decoding.
Checks the host v
component for RFC2396 compliance and against the URI::Parser Regexp
for :HOST.
Can not have a registry or opaque component defined, with a host component defined.