See Zlib::GzipReader documentation for a description.
Returns true if stat is writable by the real user id of this process.
File.stat("testfile").writable_real? #=> true
If stat is writable by others, returns an integer representing the file permission bits of stat. Returns nil otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2).
m = File.stat("/tmp").world_writable? #=> 511 sprintf("%o", m) #=> "777"
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
Creates a Regexp to match an address.
Creates a DRb::DRbObject given the reference information to the remote host uri and object ref.
Routes respond_to? to the referenced remote object.
Creates a DRb::DRbObject given the reference information to the remote host uri and object ref.
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 while the given block yields a truthy value.
When true, connections are in passive mode per default. Default: true.
When true, connections are in passive mode per default. Default: true.
Sends a GET request to the target and returns the HTTP response as a Net::HTTPResponse object. The target can either be specified as (uri), or as (host, path, port = 80); so:
res = Net::HTTP.get_response(URI('http://www.example.com/index.html')) print res.body
or:
res = Net::HTTP.get_response('www.example.com', '/index.html') print res.body
The default port to use for HTTP requests; defaults to 80.
Returns the X.509 certificates the server presented.
The port of the proxy server, if one is configured.
The proxy password, if one is configured
utils