Module: TurboTest::ConstantTracer::HashLookupWithProxy
- Defined in:
- lib/turbo_test_constant_tracer/hash_lookup_with_proxy.rb,
ext/hash_lookup_with_proxy_ext/hash_lookup_with_proxy_ext.c
Defined Under Namespace
Modules: Methods
Class Attribute Summary collapse
-
.enabled ⇒ Object
readonly
Returns the value of attribute enabled.
Class Method Summary collapse
Class Attribute Details
.enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
9 10 11 |
# File 'lib/turbo_test_constant_tracer/hash_lookup_with_proxy.rb', line 9 def enabled @enabled end |
Class Method Details
.disable ⇒ Object
20 21 22 23 24 25 |
# File 'lib/turbo_test_constant_tracer/hash_lookup_with_proxy.rb', line 20 def self.disable return unless enabled Methods.disable @enabled = false end |
.enable ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/turbo_test_constant_tracer/hash_lookup_with_proxy.rb', line 12 def self.enable return if enabled Hash.prepend(Methods) Methods.enable @enabled = true end |