Enumerates trusted certificates.
Loads the given certificate_file
The offset from the start of the file in code units of the given encoding.
The column number in code units of the given encoding where this location starts from the start of the line.
Return the best specification that contains the file matching path
amongst the specs that are not activated.
Return the best specification in the record that contains the file matching path
amongst the specs that are not activated.
Returns IO
instance tied to ARGF for writing if inplace mode is enabled.
Handle BasicObject
instances
Return the native thread ID which is used by the Ruby
thread.
The ID depends on the OS. (not POSIX thread ID returned by pthread_self(3))
On Linux it is TID returned by gettid(2).
On macOS it is the system-wide unique integral ID of thread returned by pthread_threadid_np(3).
On FreeBSD it is the unique integral ID of the thread returned by pthread_getthreadid_np(3).
On Windows it is the thread identifier returned by GetThreadId().
On other platforms, it raises NotImplementedError
.
NOTE: If the thread is not associated yet or already deassociated with a native thread, it returns nil. If the Ruby
implementation uses M:N thread model, the ID may change depending on the timing.
Enables measuring GC time. You can get the result with GC.stat(:time)
. Note that GC time measurement can cause some performance overhead.
Returns the measure_total_time
flag (default: true
). Note that measurement can affect the application’s performance.
Returns the latest release version of RubyGems.
Returns the version of the latest release-version of gem name
The default signing certificate chain path
Default options for gem commands for Ruby
packagers.
The options here should be structured as an array of string “gem” command names as keys and a string of the default options as values.
Example:
def self.operating_system_defaults
{ 'install' => '--no-rdoc --no-ri --env-shebang', 'update' => '--no-rdoc --no-ri --env-shebang' }
end
Mirror the Prism.parse_file_comments
API by using the serialization API. This uses native strings instead of Ruby
strings because it allows us to use mmap when it is available.
Mirror the Prism.parse_lex_file
API by using the serialization API.