Objects of class File::Stat
encapsulate common status information for File
objects. The information is recorded at the moment the File::Stat
object is created; changes made to the file after that point will not be reflected. File::Stat
objects are returned by IO#stat
, File::stat
, File#lstat
, and File::lstat
. Many of these methods return platform-specific values, and not all values are meaningful on all systems. See also Kernel#test
.
exception to wait for reading by EAGAIN. see IO.select
.
exception to wait for reading by EWOULDBLOCK. see IO.select
.
exception to wait for writing by EINPROGRESS. see IO.select
.
The InstructionSequence
class represents a compiled sequence of instructions for the Virtual Machine used in MRI. Not all implementations of Ruby may implement this class, and for the implementations that implement it, the methods defined and behavior of the methods can change in any version.
With it, you can get a handle to the instructions that make up a method or a proc, compile strings of Ruby code down to VM instructions, and disassemble instruction sequences to strings for easy inspection. It is mostly useful if you want to learn how YARV works, but it also lets you control various settings for the Ruby iseq compiler.
You can find the source for the VM instructions in insns.def
in the Ruby source.
The instruction sequence results will almost certainly change as Ruby changes, so example output in this documentation may be different from what you see.
Of course, this class is MRI specific.
Superclass of all errors raised in the DRb
module.
Error raised when an error occurs on the underlying communication protocol.
An exception wrapping a DRb::DRbUnknown
object
The default drb protocol which communicates over a TCP socket.
The DRb
TCP protocol URI
looks like: druby://<host>:<port>?<option>
. The option is optional.
Error
types.
A custom InputMethod class used by XMP
for evaluating string io.
HTTP response class.
This class wraps together the response header and the response body (the entity requested).
It mixes in the HTTPHeader module, which provides access to response header values both via hash-like methods and via individual readers.
Note that each possible HTTP response code defines its own HTTPResponse
subclass. All classes are defined under the Net
module. Indentation indicates inheritance. For a list of the classes see Net::HTTP
.
Correspondence HTTP code => class
is stored in CODE_TO_OBJ
constant:
Net::HTTPResponse::CODE_TO_OBJ['404'] #=> Net::HTTPNotFound