Results for: "String#[]"

Sets the HTTP Range: header. Accepts either a Range object as a single argument, or a beginning index and a length from that index. Example:

req.range = (0..1023)
req.set_range 0, 1023

Returns an Integer object which represents the HTTP Content-Length: header field, or nil if that field was not provided.

No documentation available

Returns a Range object which represents the value of the Content-Range: header field. For a partial entity body, this indicates where this fragment fits inside the full entity body, as range of byte offsets.

Returns a content type string such as “text”. This method returns nil if Content-Type: header field does not exist.

returns a Time that represents the Last-Modified field.

No documentation available

Fixed by Mike Stok

No documentation available
No documentation available
No documentation available

Called when a tag is encountered. @p name the tag name @p attrs an array of arrays of attribute/value pairs, suitable for use with assoc or rassoc. IE, <tag attr1=“value1” attr2=“value2”> will result in tag_start( “tag”, # [[“attr1”,“value1”],])

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Signs in with the RubyGems API at sign_in_host and sets the rubygems API key.

No documentation available

Invokes system, but silences all output.

Enumerates the parents of directory.

Creates TCP server sockets bound to address:port and returns them.

It will create IPV4 and IPV6 sockets on all interfaces.

Creates TCP server sockets bound to address:port and returns them.

It will create IPV4 and IPV6 sockets on all interfaces.

Set the effective user ID, and if possible, the saved user ID of the process to the given user. Returns the new effective user ID. Not available on all platforms.

[Process.uid, Process.euid]          #=> [0, 0]
Process::UID.grant_privilege(31)     #=> 31
[Process.uid, Process.euid]          #=> [0, 31]
Search took: 3ms  ·  Total Results: 3008