Class: Ractor::Cache::Strategy::Disable
- Defined in:
- lib/ractor/cache/strategy.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#compile_store_init, #initialize
Constructor Details
This class inherits a constructor from Ractor::Cache::Strategy::Base
Instance Method Details
#compile_accessor ⇒ Object
79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/ractor/cache/strategy.rb', line 79 def compile_accessor <<~RUBY def #{method_name}(#{signature}) r = ractor_cache.#{method_name}#{compile_lookup} return r unless r == EMPTY_CACHE r = super ractor_cache.#{method_name}#{compile_lookup} = r unless ractor_cache.frozen? r end RUBY end |
#deep_freeze_callback(instance) ⇒ Object
92 93 94 |
# File 'lib/ractor/cache/strategy.rb', line 92 def deep_freeze_callback(instance) # nothing to do end |