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.
a and b ^^^^^^^
begin end ^^^^^^^^^
A block on a keyword or method call.
foo ^^^
foo.bar ^^^^^^^
foo.bar() {} ^^^^^^^^^^^^
case foo; when bar; end ^^^^^^^^^^^^^^^^^^^^^^^
class Foo; end ^^^^^^^^^^^^^^
def foo; end ^^^^^^^^^^^^
def self.foo; end ^^^^^^^^^^^^^^^^^
defined? a ^^^^^^^^^^
defined?(a) ^^^^^^^^^^^