Replaces the contents of the environment variables with the contents of hash
.
Re-hashing the environment variables does nothing. It is provided for compatibility with Hash
.
Returns true when there are no environment variables
Returns true
if there is an environment variable with the given name
.
This method is intended as the primary interface for reading CSV
files. You pass a path
and any options
you wish to set for the read. Each row of file will be passed to the provided block
in turn.
The options
parameter can be anything CSV::new()
understands. This method also understands an additional :encoding
parameter that you can use to specify the Encoding
of the data in the file to be read. You must provide this unless your data is in Encoding::default_external()
. CSV
will use this to determine how to parse the data. You may provide a second Encoding
to have the data transcoded as it is read. For example, encoding: "UTF-32BE:UTF-8"
would read UTF-32BE data from the file but transcode it to UTF-8 before CSV
parses it.
Use to slurp a CSV
file into an Array of Arrays. Pass the path
to the file and any options
CSV::new()
understands. This method also understands an additional :encoding
parameter that you can use to specify the Encoding
of the data in the file to be read. You must provide this unless your data is in Encoding::default_external()
. CSV
will use this to determine how to parse the data. You may provide a second Encoding
to have the data transcoded as it is read. For example, encoding: "UTF-32BE:UTF-8"
would read UTF-32BE data from the file but transcode it to UTF-8 before CSV
parses it.
Alias for CSV::read()
.
Rewinds the underlying IO
object and resets CSV’s lineno() counter.
Slurps the remaining rows and returns an Array of Arrays.
The data source must be open for reading.
Freeze both the object returned by _getobj_ and self.
Executes the generated ERB
code to produce a completed template, returning the results of that code. (See ERB::new
for details on how this process can be affected by safe_level.)
b accepts a Binding
object which is used to set the context of code evaluation.
Returns a new ipaddr built by converting the IPv6 address into a native IPv4 address. If the IP address is not an IPv4-mapped or IPv4-compatible IPv6 address, returns self.
logdev
The log device. This is a filename (String) or IO
object (typically STDOUT
, STDERR
, or an open file).
Reopen a log device.
Returns true
if fix
is an even number.
Creates a empty matrix of row_count
x column_count
. At least one of row_count
or column_count
must be 0.
m = Matrix.empty(2, 0) m == Matrix[ [], [] ] => true n = Matrix.empty(0, 3) n == Matrix.columns([ [], [], [] ]) => true m * n => Matrix[[0, 0, 0], [0, 0, 0]]
Returns true
if this is an empty matrix, i.e. if the number of rows or the number of columns is 0.
Returns true
if all entries of the matrix are real.
Returns true
if this is a regular (i.e. non-singular) matrix.