Get a single gem name from the command line. Fail if there is no gem name or if there is more than one gem name given.
Adds a section with title
and content
to the parser help view. Used for adding command arguments and default arguments.
Search through all unresolved deps and sub-dependencies and return specs that contain the file matching path
.
Adds a dependency on gem dependency
with type type
that requires requirements
. Valid types are currently :runtime
and :development
.
Corrects path
(usually returned by ‘Gem::URI.parse().path` on Windows), that comes with a leading slash.
while foo; bar end ^^^^^^^^^^^^^^^^^^
bar while foo ^^^^^^^^^^^^^
while foo; bar end ^^^^^^^^^^^^^^^^^^
bar while foo ^^^^^^^^^^^^^
Compile a ClassVariableOperatorWriteNode
node
Compile a GlobalVariableOperatorWriteNode
node
Compile a LocalVariableOperatorWriteNode
node
@@foo &&= bar
becomes
@@foo && @@foo = bar
@@foo ||= bar
becomes
defined?(@@foo) ? @@foo : @@foo = bar
@@foo += bar
becomes
@@foo = @@foo + bar