module ObjectFramework::Capabilities
Optional Ruby Box, Ractor, and JIT capability reporting. The core application lifecycle does not require these experimental or VM-specific features.
Public Class Methods
Source
# File lib/object_framework/capabilities.rb, line 20 def self.report { ruby_box: Ruby::Box.enabled?, ractor: defined?(::Ractor) != nil, yjit: RubyVM::YJIT.enabled?, zjit: RubyVM::ZJIT.enabled? }.freeze end
Returns the current availability/enabled state of Ruby Box, Ractor, YJIT, and ZJIT. JIT comparisons run in separate benchmark processes.