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:
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 an IO
object representing the current file. This will be a File
object unless the current file is a stream such as STDIN.
For example:
ARGF.to_io #=> #<File:glark.txt> ARGF.to_io #=> #<IO:<STDIN>>
Returns a string containing the IP address representation in canonical form.
Creates a Range
object for the network address.
Explicit conversion to a Matrix
. Returns self
Return a single-column matrix from this vector
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
.
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
.
Convert a reference into an object using the current server.
This raises a DRbServerNotFound
error if there is no current server. See current_server
.