Implement the hash pattern matching interface for ParseLexResult
.
Implement the hash pattern matching interface for Token
.
Implement the pretty print interface for Token
.
Freeze this object and the objects it contains.
Shortcut for combining two procs into one that returns true if either returns true.
Raise an error because the given node is not supported.
Iterates over all IP addresses for name
retrieved from the hosts file.
Iterates over all IP addresses for name
retrieved from the DNS
resolver.
name
can be a Resolv::DNS::Name
or a String
. Retrieved addresses will be a Resolv::IPv4
or Resolv::IPv6
Iterates over all typeclass
DNS
resources for name
. See getresource
for argument details.
Turns this IPv4
address into a Resolv::DNS::Name
.
Turns this IPv6
address into a Resolv::DNS::Name
.
Iterates over all IP addresses for name
retrieved from the mDNS resolver, provided name ends with “local”. If the name does not end in “local” no records will be returned.
name
can be a Resolv::DNS::Name
or a String
. Retrieved addresses will be a Resolv::IPv4
or Resolv::IPv6
Full path of the target library file. If the file is not in this gem, return nil.
Return a Gem::Specification
from this gem
Override to display the default values of the command options. (similar to arguments
, but displays the default values).
For example:
def defaults_str --no-gems-first --no-all end
Remove previously defined command-line argument name
.
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')
Location of RubyGems.org credentials
Really verbose mode gives you extra output.
Is this dependency simply asking for the latest version of a gem?