Results for: "partition"

Write value to a registry value named name.

The value type is REG_SZ(write_s), REG_DWORD(write_i), or REG_BINARY(write_bin).

Same as IO.

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"

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
No documentation available

Example:

Foo::Bar
   ^^^^^

Like Net::HTTP.get, but returns a Net::HTTPResponse object instead of the body string.

Returns integer 80, the default port to use for HTTP requests:

Net::HTTP.default_port # => 80

Returns the X509 certificate chain (an array of strings) for the session’s socket peer, or nil if none.

Returns the port number of the proxy server, if defined, nil otherwise; see Proxy Server.

Returns the password of the proxy server, if defined, nil otherwise; see Proxy Server.

No documentation available
No documentation available
No documentation available

utils

Like Net::HTTP.get, but returns a Net::HTTPResponse object instead of the body string.

Returns integer 80, the default port to use for HTTP requests:

Net::HTTP.default_port # => 80

Returns the X509 certificate chain (an array of strings) for the session’s socket peer, or nil if none.

Returns the port number of the proxy server, if defined, nil otherwise; see Proxy Server.

Returns the password of the proxy server, if defined, nil otherwise; see Proxy Server.

No documentation available
No documentation available
Search took: 7ms  ·  Total Results: 2857