Returns true
if key
is registered
Returns the number of referenced objects
Returns a human-readable string representation of this instruction sequence, including the label
and path
.
Set
domain for which this cookie applies
A summary of cookie string.
This method will return the index of a field with the provided header
. The offset
can be used to locate duplicate header names, as described in CSV::Row.field()
.
Returns an ASCII-compatible String showing:
Class
CSV::Row.
Header-value pairs.
Example:
source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" table = CSV.parse(source, headers: true) row = table[0] row.inspect # => "#<CSV::Row \"Name\":\"foo\" \"Value\":\"0\">"
Shows the mode and size of this table in a US-ASCII String
.
Winds back to the beginning
Get the URI
of the remote object.
Get the URI
of the remote object.
A setter to toggle transfers in binary mode. newmode
is either true
or false
Logs in to the remote host. The session must have been previously connected. If user
is the string “anonymous” and the password
is nil
, “anonymous@” is used as a password. If the acct
parameter is not nil
, an FTP
ACCT command is sent following the successful login. Raises an exception on error (typically Net::FTPPermError
).
Retrieves remotefile
in binary mode, storing the result in localfile
. If localfile
is nil, returns retrieved data. If a block is supplied, it is passed the retrieved data in blocksize
chunks.
Transfers localfile
to the server in binary mode, storing the result in remotefile
. If a block is supplied, calls it, passing in the transmitted data in blocksize
chunks.
Returns an array of filenames in the remote directory.
Returns an array of file information in the directory (the output is like ‘ls -l`). If a block is given, it iterates through the listing.