Results for: "partition"

No documentation available

Returns the birth time for file.

File.new("testfile").birthtime   #=> Wed Apr 09 08:53:14 CDT 2003

If the platform doesn’t have birthtime, raises NotImplementedError.

Checks the compatibility of two objects.

If the objects are both strings they are compatible when they are concatenatable. The encoding of the concatenated string will be returned if they are compatible, nil if they are not.

Encoding.compatible?("\xa1".force_encoding("iso-8859-1"), "b")
#=> #<Encoding:ISO-8859-1>

Encoding.compatible?(
  "\xa1".force_encoding("iso-8859-1"),
  "\xa1\xa1".force_encoding("euc-jp"))
#=> nil

If the objects are non-strings their encodings are compatible when they have an encoding and:

Returns true if rat is greater than 0.

Returns the birth time for the file. If the platform doesn’t have birthtime, raises NotImplementedError.

See File.birthtime.

Returns the list of waiting threads.

When stepping through the traces of a function, thread gets suspended, to be resumed later.

Creates an n by n identity matrix.

Matrix.identity(2)
#  => 1 0
#     0 1

Returns true if this is an hermitian matrix. Raises an error if matrix is not square.

Sets the process title that appears on the ps(1) command. Not necessarily effective on all platforms. No exception will be raised regardless of the result, nor will NotImplementedError be raised even if the platform does not support the feature.

Calling this method does not affect the value of $0.

Process.setproctitle('myapp: worker #%d' % worker_id)

This method first appeared in Ruby 2.1 to serve as a global variable free means to change the process title.

Reads at most maxlen bytes from the gziped stream but it blocks only if gzipreader has no data immediately available. If the optional outbuf argument is present, it must reference a String, which will receive the data. It raises EOFError on end of file.

Similar to read, but raises EOFError at end of string instead of returning nil, as well as IO#sysread does.

Reads at most maxlen bytes from the stream. If buf is provided it must reference a string which will receive the data.

See IO#readpartial for full details.

Returns whether the form contained multipart/form-data

Returns the destination encoding as an encoding object.

Returns the destination encoding as an encoding object.

Returns the destination encoding as an Encoding object.

No documentation available

Clear recorded tracing information.

Get the names of all sections in the current configuration

Get the indentation level.

Set the indentation level to level. The level must be less than 10 and greater than 1.

Convert 64-bit FILETIME integer into Time object.

Convert Time object or Integer object into 64-bit FILETIME.

Create a DRbUnknownError exception containing this object.

Issues an OPTS command

example: option(‘UTF8’, ‘ON’) => ‘OPTS UTF8 ON’

Search took: 4ms  ·  Total Results: 2543