Results for: "to_proc"

Stores class name (Time) with number of seconds since epoch and number of microseconds for Time as JSON string

Converts the contents of the database to an in-memory Hash object, and returns it.

Stores class name (Struct) with Struct values v as a JSON string. Only named structs are supported.

Returns ios.

Returns a hash of all key-value pairs contained in the database.

Stores class name (OpenStruct) with this struct’s values v as a JSON string.

Stores class name (Range) with JSON array of arguments a which include first (integer), last (integer), and exclude_end? (boolean) as JSON string.

Stores class name (Regexp) with options o and source s (Regexp or String) as JSON string

Stores class name (Symbol) with String representation of Symbol as a JSON string.

In general, to_sym returns the Symbol corresponding to an object. As sym is already a symbol, self is returned in this case.

Return the path as a String.

to_path is implemented so Pathname objects are usable with File.open, etc.

Returns a new Hash containing each key-value pair in the database.

creates a socket connected to remote_addr_args and bound to self.

The optional last argument opts is options represented by a hash. opts may have following options:

:timeout

specify the timeout in seconds.

If a block is given, it is called with the socket and the value of the block is returned. The socket is returned otherwise.

Addrinfo.tcp("0.0.0.0", 4649).connect_to("www.ruby-lang.org", 80) {|s|
  s.print "GET / HTTP/1.0\r\nHost: www.ruby-lang.org\r\n\r\n"
  puts s.read
}

Returns self.

Creates a hash with a copy of the environment variables.

Returns a string containing the IP address representation in canonical form.

Creates a Range object for the network address.

No documentation available

Casts an Integer as an OpenSSL::BN

See ‘man bn` for more info.

As int is already an Integer, all these methods simply return the receiver.

Synonyms are to_int, floor, ceil, truncate.

Returns self if no arguments are given. Otherwise, converts the set to another with klass.new(self, *args, &block).

In subclasses, returns klass.new(self, *args, &block) unless overridden.

Makes a set from the enumerable object with given arguments. Needs to +require “set”+ to use this method.

Dump Ruby object to a JSON string.

Convert a reference into an object using the current server.

This raises a DRbServerNotFound error if there is no current server. See current_server.

Get a reference id for an object using the current server.

This raises a DRbServerNotFound error if there is no current server. See current_server.

Search took: 3ms  ·  Total Results: 1874