Results for: "to_proc"

Returns self.

Returns a Date object which denotes self.

Returns a DateTime object which denotes self.

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 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.

No documentation available

Explicit conversion to a Matrix. Returns self

Return a single-column matrix from this vector

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.

Search took: 4ms  ·  Total Results: 1909