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.
Returns the prefix length in bits for the ipaddr.
Sets the prefix length in bits
logdev
The log device. This is a filename (String
) or IO
object (typically STDOUT
, STDERR
, or an open file). reopen the same filename if it is nil
, do nothing for IO
. Default is nil
.
Reopen a log device.
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.
Returns true
if this is a square matrix.
Returns the real part of the matrix.
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]] => 1+2i i 0 1 2 3 Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].real => 1 0 0 1 2 3
Returns an array containing matrices corresponding to the real and imaginary parts of the matrix
m.rect == [m.real, m.imag] # ==> true for all matrices m
Creates a vector from an Array
. The optional second argument specifies whether the array itself or a copy is used internally.
Directs to reject specified class argument.
t
Argument class specifier, any object including Class
.
reject(t)
Release code
Returns version string from program_name
, version and release.