Module: ObjectSpace
- Defined in:
- lib/story_teller/kernel.rb
Overview
The ObjectSpace module
Class Method Summary collapse
Class Method Details
.enabled? ⇒ Boolean
423 424 425 426 427 428 429 |
# File 'lib/story_teller/kernel.rb', line 423 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 |