Sets the system_path
that new instances of Shell
should have as their initial system_path.
path
should be an array of directory name strings.
Returns the method identifier for the given object
.
class A include ObjectSpace def foo trace_object_allocations do obj = Object.new p "#{allocation_class_path(obj)}##{allocation_method_id(obj)}" end end end A.new.foo #=> "Class#new"
See ::trace_object_allocations
for more information and examples.
Sets a list of characters that cause a filename to be quoted by the completer when they appear in a completed filename. The default is nil.
Raises NotImplementedError
if the using readline library does not support.
Gets a list of characters that cause a filename to be quoted by the completer when they appear in a completed filename.
Raises NotImplementedError
if the using readline library does not support.
The default signing key path
The default signing certificate chain path
| RelativeLocationPath | '/' RelativeLocationPath? | '//' RelativeLocationPath
Downloads uri
to path
if necessary. If no path is given, it just passes the data.
Fully expand the name, even if the prefix wasn’t specified in the source file.
Set
the names of the members
in this C struct
Returns original filename recorded in the gzip file header, or nil
if original filename is not present.
Specify the original name (str
) in the gzip header.
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
Formats time
as an IMAP-style date-time.
Private setter for the path of the URI::FTP
Main name of the switch.
Iterates over all hostnames for address
retrieved from the hosts file.