Module: ObjectSpace
- Defined in:
- lib/runtime/kernel.rb
Overview
The ObjectSpace module
Class Method Summary collapse
Class Method Details
.enabled? ⇒ Boolean
425 426 427 428 429 430 431 |
# File 'lib/runtime/kernel.rb', line 425 def self.enabled? ObjectSpace.respond_to?(:each_object) && ObjectSpace.each_object {} # rubocop: disable Lint/EmptyBlock true rescue StandardError => e log.debug "Error accessing object space: #{e.}" false end |