Returns the integer memory location of this pointer.
ptr.to_str => string ptr.to_str(len) => string
Returns the pointer contents as a string.
When called with no arguments, this method will return the contents with the length of this pointer’s size
.
When called with len
, a string of len
bytes will be returned.
See to_s
Cast this pointer to a ruby object.
Same as IO
.
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.
Convert this node into a graphviz dot graph string.
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.
Turns this IPv4
address into a Resolv::DNS::Name
.
Turns this IPv6
address into a Resolv::DNS::Name
.
Full path of the target library file. If the file is not in this gem, return nil.
Return a Gem::Specification
from this gem
Turn an array of NameTuple
objects back into an array of
tuples.
Copies this package to path
(if possible)