Results for: "match"

See Zlib::GzipReader documentation for a description.

Returns the major part of File_Stat#dev or nil.

File.stat("/dev/fd1").dev_major   #=> 2
File.stat("/dev/tty").dev_major   #=> 5

Returns the major part of File_Stat#rdev or nil.

File.stat("/dev/fd1").rdev_major   #=> 2
File.stat("/dev/tty").rdev_major   #=> 5

Iterates over the buffer, yielding each byte starting from offset.

If count is given, only count bytes will be yielded.

IO::Buffer.for("Hello World").each_byte(2, 2) do |offset, byte|
  puts "#{offset}: #{byte}"
end
# 2: 108
# 3: 108

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

Take a location from the prism parser and set the necessary instance variables.

Sets the maximum number of times to retry an idempotent request in case of Net::ReadTimeout, IOError, EOFError, Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPIPE, OpenSSL::SSL::SSLError, Timeout::Error. The initial value is 1.

Argument retries must be a non-negative numeric value:

http = Net::HTTP.new(hostname)
http.max_retries = 2   # => 2
http.max_retries       # => 2
No documentation available

Sets the maximum number of times to retry an idempotent request in case of Net::ReadTimeout, IOError, EOFError, Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPIPE, OpenSSL::SSL::SSLError, Timeout::Error. The initial value is 1.

Argument retries must be a non-negative numeric value:

http = Net::HTTP.new(hostname)
http.max_retries = 2   # => 2
http.max_retries       # => 2
No documentation available

Validates typecode v, returns true or false.

Private setter for the path of the URI::FTP.

Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.

Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.

Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.

Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.

Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.

Occasionally it’s helpful to treat a string as if it were interpolated so that there’s a consistent interface for working with strings.

Occasionally it’s helpful to treat a string as if it were interpolated so that there’s a consistent interface for working with strings.

Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.

Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.

Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.

Return the character offset for the given byte offset.

Return the column number in characters for the given byte offset.

Search took: 3ms  ·  Total Results: 1778