Module: TurboTest::ConstantTracer::HashLookupWithProxy::Methods

Defined in:
lib/turbo_test_constant_tracer/hash_lookup_with_proxy.rb,
ext/hash_lookup_with_proxy_ext/hash_lookup_with_proxy_ext.c

Class Method Summary collapse

Class Method Details

.add_assign_methodObject



19
20
21
22
# File 'ext/hash_lookup_with_proxy_ext/hash_lookup_with_proxy_ext.c', line 19

VALUE add_assign_method(VALUE self) {
  rb_define_method(turbo_test_hash_lookup_with_proxy_methods, "[]=", my_rb_hash_aset, 2);
  return Qtrue;
}

.disableObject



33
34
35
36
37
# File 'lib/turbo_test_constant_tracer/hash_lookup_with_proxy.rb', line 33

def disable
  class_eval do
    remove_method :[]=
  end
end

.enableObject



29
30
31
# File 'lib/turbo_test_constant_tracer/hash_lookup_with_proxy.rb', line 29

def enable
  add_assign_method
end