Same as IO
.
See Zlib::GzipReader
documentation for a description.
See Zlib::GzipReader
documentation for a description.
Iterates over keys and objects in a weakly referenced object
Returns serialized iseq binary format data as a String object. A corresponding iseq object is created by RubyVM::InstructionSequence.load_from_binary()
method.
String extra_data will be saved with binary data. You can access this data with RubyVM::InstructionSequence.load_from_binary_extra_data(binary)
.
Note that the translated binary data is not portable. You can not move this binary data to another machine. You can not use the binary data which is created by another version/another architecture of Ruby.
Returns the absolute path of this instruction sequence.
nil
if the iseq was evaluated from a string.
For example, using ::compile_file
:
# /tmp/method.rb def hello puts "hello, world" end # in irb > iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb') > iseq.absolute_path #=> /tmp/method.rb
Returns the base label of this instruction sequence.
For example, using irb:
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2') #=> <RubyVM::InstructionSequence:<compiled>@<compiled>> iseq.base_label #=> "<compiled>"
Using ::compile_file
:
# /tmp/method.rb def hello puts "hello, world" end # in irb > iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb') > iseq.base_label #=> <main>
Returns the number of the first source line where the instruction sequence was loaded from.
For example, using irb:
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2') #=> <RubyVM::InstructionSequence:<compiled>@<compiled>> iseq.first_lineno #=> 1
Returns true
if this is a header row.
Creates a Regexp
to match an address.
Routes respond_to? to the referenced remote object.
Has a method been included in the list of insecure methods?
The main loop performed by a DRbServer’s internal thread.
Accepts a connection from a client, and starts up its own thread to handle it. This thread loops, receiving requests from the client, invoking them on a local object, and returning responses, until the client closes the connection or a local method call fails.
Routes respond_to? to the referenced remote object.
Returns [eigenvector_matrix, eigenvalue_matrix
, eigenvector_matrix_inv
]
Returns L
, U
, P
in an array
Calls wait repeatedly until the given block yields a truthy value.
Setter for the read_timeout
attribute.
When true
, connections are in passive mode per default. Default: true
.
When true
, connections are in passive mode per default. Default: true
.