Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

silence method redefined warning in 1.9.2

  • Loading branch information...
commit eb4c8ec11d4e97a70990197f015d37e01a004596 1 parent a44e79a
Joshua Peek authored November 22, 2009

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  ext/nested_multimap_ext.c
3  ext/nested_multimap_ext.c
@@ -13,6 +13,7 @@ static VALUE rb_nested_multimap_aref(int argc, VALUE *argv, VALUE self)
13 13
 
14 14
 void Init_nested_multimap_ext() {
15 15
 	VALUE cNestedMultimap = rb_const_get(rb_cObject, rb_intern("NestedMultimap"));
16  
-	rb_undef(cNestedMultimap, rb_intern("[]"));
  16
+	// rb_funcall(cNestedMultimap, rb_intern("remove_method"), 1, rb_intern("[]"));
  17
+	rb_eval_string("NestedMultimap.send(:remove_method, :[])");
17 18
 	rb_define_method(cNestedMultimap, "[]", rb_nested_multimap_aref, -1);
18 19
 }

0 notes on commit eb4c8ec

Please sign in to comment.
Something went wrong with that request. Please try again.