def safe_navigation?: () -> bool
def safe_navigation?: () -> bool
def safe_navigation?: () -> bool
def safe_navigation?: () -> bool
def safe_navigation?: () -> bool
def safe_navigation?: () -> bool
def safe_navigation?: () -> bool
Add a command-line option and handler to the command.
See Gem::OptionParser#make_switch for an explanation of opts
.
handler
will be called with two values, the value of the argument and the options hash.
If the first argument of add_option
is a Symbol
, it’s used to group options in output. See ‘gem help list` for an example.
Mark a command-line option as deprecated, and optionally specify a deprecation horizon.
Note that with the current implementation, every version of the option needs to be explicitly deprecated, so to deprecate an option defined as
add_option('-t', '--[no-]test', 'Set test mode') do |value, options| # ... stuff ... end
you would need to explicitly add a call to ‘deprecate_option` for every version of the option you want to deprecate, like
deprecate_option('-t') deprecate_option('--test') deprecate_option('--no-test')
Merge a set of command options with the set of default options (without modifying the default option hash).
Count the number of gemspecs in the list specs
that are not in ignored
.
A recommended version for use with a ~> Requirement.
Specifies the rdoc options to be used when generating API documentation.
Usage:
spec.rdoc_options << '--title' << 'Rake -- Ruby Make' << '--main' << 'README' << '--line-numbers'
Activate all unambiguously resolved runtime dependencies of this spec. Add any ambiguous dependencies to the unresolved list to be resolved later, as needed.
Sets rdoc_options
to value
, ensuring it is an array.
List of dependencies that will automatically be activated at runtime.
Parse uri
into a [uri, option] pair.
The DRbProtocol
module asks each registered protocol in turn to try to parse the URI
. Each protocol signals that it does not handle that URI
by raising a DRbBadScheme
error. If no protocol recognises the URI
, then a DRbBadURI
error is raised.
Parse uri
into a [uri, option] pair.
The DRbProtocol
module asks each registered protocol in turn to try to parse the URI
. Each protocol signals that it does not handle that URI
by raising a DRbBadScheme
error. If no protocol recognises the URI
, then a DRbBadURI
error is raised.
Message to promote available RubyGems update with related gem update command.
Get a single optional argument from the command line. If more than one argument is given, return only the first. Return nil if none are given.
Perform hostname verification following RFC 6125.
This method MUST be called after calling connect
to ensure that the hostname of a remote peer has been verified.
Return the 2 dependency objects that conflicted