Returns a Hash
containing all name/value pairs from ENV:
ENV.replace('foo' => '0', 'bar' => '1') ENV.to_hash # => {"bar"=>"1", "foo"=>"0"}
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>>
Reads at most maxlen bytes from the ARGF
stream in non-blocking mode.
Returns the value that determines whether headers are to be returned; used for parsing; see {Option return_headers
}:
CSV.new('').return_headers? # => false
Returns the value that determines whether all output fields are to be quoted; used for generating; see {Option force_quotes
}:
CSV.new('').force_quotes? # => false
Returns the list of break points where execution will be stopped.
See DEBUGGER__
for more usage
Returns a new binding each time near TOPLEVEL_BINDING for runs that do not specify a binding.
Set
an error (a protected method).
Return the appropriate error message in POSIX-defined format. If no error has occurred, returns nil.
Creates a new ipaddr containing the given network byte ordered string form of an IP address.
Creates a Range
object for the network address.
Set
date-time format.
datetime_format
A string suitable for passing to strftime
.
Returns the date format being used. See datetime_format=
Private. Use Matrix#determinant
Returns the determinant of the matrix, using Bareiss’ multistep integer-preserving gaussian elimination. It has the same computational cost order O(n^3) as standard Gaussian elimination. Intermediate results are fraction free and of lower complexity. A matrix of Integers will have thus intermediate results that are also Integers, with smaller bignums (if any), while a matrix of Float
will usually have intermediate results with better precision.
Explicit conversion to a Matrix
. Returns self