From 944c620dfabbf46e7a96b96b5dad527d985492d3 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 13 Aug 2013 12:52:25 +0000 Subject: object.c: undef Module#prepend_features on Class * object.c (Init_Object): undef Module#prepend_features on Class, as well as Module#append_features. [Fixes GH-376] * test_class.rb: Added test for above. And ensure type checking on similar methods as module_function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 1 + 1 file changed, 1 insertion(+) (limited to 'object.c') diff --git a/object.c b/object.c index 965c83cb84..265601c799 100644 --- a/object.c +++ b/object.c @@ -3242,6 +3242,7 @@ Init_Object(void) rb_define_alloc_func(rb_cClass, rb_class_s_alloc); rb_undef_method(rb_cClass, "extend_object"); rb_undef_method(rb_cClass, "append_features"); + rb_undef_method(rb_cClass, "prepend_features"); /* * Document-class: Data -- cgit v1.2.3