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
Return trace points in the instruction sequence. Return an array of [line, event_symbol] pair.
It returns recorded script lines if it is available. The script lines are not limited to the iseq range, but are entire lines of the source file.
Note that this is an API for ruby internal use, debugging, and research. Do not use this for any other purpose. The compatibility is not guaranteed.
Returns true
if self
uses SSL, false
otherwise. See Net::HTTP#use_ssl=
.
Sets whether a new session is to use Transport Layer Security:
Raises IOError
if attempting to change during a session.
Raises OpenSSL::SSL::SSLError
if the port is not an HTTPS port.
Returns the X509 certificate chain (an array of strings) for the session’s socket peer, or nil
if none.
Returns true
if self
uses SSL, false
otherwise. See Net::HTTP#use_ssl=
.
Sets whether a new session is to use Transport Layer Security:
Raises IOError
if attempting to change during a session.
Raises OpenSSL::SSL::SSLError
if the port is not an HTTPS port.
Returns the X509 certificate chain (an array of strings) for the session’s socket peer, or nil
if none.
Replace the value of offsets with the given value.
Return the byte offset of the start of the line corresponding to the given byte offset.
Returns the byte offset of the end of the line corresponding to the given byte offset.
Binary search through the offsets to find the line number for the given byte offset.
These are the comments that are associated with this location that exist after the end of this location.
Attach a comment to the trailing comments of this location.
The line number where this location starts.
The line number where this location ends.
Walk the tree and mark nodes that are on a new line, loosely emulating the behavior of CRuby’s :line
tracepoint event.
Iterates over all typeclass
DNS
resources for name
. See getresource
for argument details.