Module: ObjectSpace
- Defined in:
- lib/story_teller/kernel.rb
Overview
The ObjectSpace module
Class Method Summary collapse
Class Method Details
.enabled? ⇒ Boolean
415 416 417 418 419 420 421 |
# File 'lib/story_teller/kernel.rb', line 415 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 |