Results for: "module_function"

Creates an option parser and fills it in with the help info for the command.

Checks the permissions of the credentials file. If they are not 0600 an error message is displayed and RubyGems aborts.

No documentation available
No documentation available

Implementation for Specification#validate_for_resolution

No documentation available

Invoked by Ruby’s core methods to run a blocking operation in a non-blocking way.

Minimal suggested implementation is:

def blocking_operation_wait(work)
  Thread.new(&work).join
end

Add the –key option

Add the –otp option

No documentation available

Default options for the gem install and update commands.

Add the –http-proxy option

Add the –source option

No documentation available
No documentation available

Add the –platform option to the option parser.

No documentation available

Clear default gem related variables. It is for test

Shortcut for defining multiple delegator methods, but with no provision for using a different name. The following two code samples have the same effect:

def_delegators :@records, :size, :<<, :map

def_delegator :@records, :size
def_delegator :@records, :<<
def_delegator :@records, :map

Defines a method method which delegates to accessor (i.e. it calls the method of the same name in accessor). If new_name is provided, it is used as the name for the delegate method. Returns the name of the method defined.

Mirror the Prism.parse_lex_file API by using the serialization API.

Initiates the SSL/TLS handshake as a client in non-blocking manner.

# emulates blocking connect
begin
  ssl.connect_nonblock
rescue IO::WaitReadable
  IO.select([s2])
  retry
rescue IO::WaitWritable
  IO.select(nil, [s2])
  retry
end

By specifying a keyword argument exception to false, you can indicate that connect_nonblock should not raise an IO::WaitReadable or IO::WaitWritable exception, but return the symbol :wait_readable or :wait_writable instead.

Create an exception with class klass and message

No documentation available
No documentation available
Search took: 8ms  ·  Total Results: 3310