public Method

Module.remove_method(...)

remove_method(symbol)    self

Removes the method identified by symbol from the current class. For an example, see Module.undef_method.

Source Code

/*
*  call-seq:
*     remove_method(symbol)   => self
*  
*  Removes the method identified by _symbol_ from the current
*  class. For an example, see <code>Module.undef_method</code>.
*/

static VALUE
rb_mod_remove_method(argc, argv, mod)
   int argc;
   VALUE *argv;
   VALUE mod;
{
   int i;

   for (i=0; i<argc; i++) {
       remove_method(mod, rb_to_id(argv[i]));
   }
   return mod;
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.