Results for: "remove_const"

Finds the user’s config file

No documentation available

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

Define method as delegator instance method with an optional alias name ali. Method calls to ali will be delegated to accessor.method. accessor should be a method name, instance variable name, or constant name. Use the full path to the constant if providing the constant name. Returns the name of the method defined.

class MyQueue
  CONST = 1
  extend Forwardable
  attr_reader :queue
  def initialize
    @queue = []
  end

  def_delegator :@queue, :push, :mypush
  def_delegator 'MyQueue::CONST', :to_i
end

q = MyQueue.new
q.mypush 42
q.queue    #=> [42]
q.push 23  #=> NoMethodError
q.to_i     #=> 1

Returns the result of the peer certificates verification. See verify(1) for error values and descriptions.

If no peer certificate was presented X509_V_OK is returned.

No documentation available

Convert klassname to a Class

Extracts the certificate chain from the spec and calls verify to ensure the signatures and certificate chain is valid according to the policy..

No documentation available
No documentation available
No documentation available

Performs a Miller-Rabin probabilistic primality test for bn.

Deprecated in version 3.0. Use prime? instead.

checks and trial_div parameters no longer have any effect.

Parses the configuration data read from io and returns the whole content as a Hash.

Returns a hash of default options used by the Ruby iseq compiler.

For details, see InstructionSequence.compile_option=.

Sets the default values for various optimizations in the Ruby iseq compiler.

Possible values for options include true, which enables all options, false which disables all options, and nil which leaves all options unchanged.

You can also pass a Hash of options that you want to change, any options not present in the hash will be left unchanged.

Possible option names (which are keys in options) which can be set to true or false include:

Additionally, :debug_level can be set to an integer.

These default options can be overwritten for a single run of the iseq compiler by passing any of the above values as the options parameter to ::new, ::compile and ::compile_file.

Example:

Foo::Bar
   ^^^^^

Sets the continue timeout value, which is the number of seconds to wait for an expected 100 Continue response. If the HTTP object does not receive a response in this many seconds it sends the request body.

The column number in bytes where this location starts from the start of the line.

No documentation available
No documentation available

Returns full path to the directory where gem’s extensions are installed.

Merge a set of command options with the set of default options (without modifying the default option hash).

Handle the given list of arguments by parsing them and recording the results.

No documentation available

Return an Array of Specifications contained within the gem_home we’ll be installing into.

Search took: 5ms  ·  Total Results: 4862