public RubyModule undefMethod(RubyClass rubyClass, RubyString name) {
notDesignedForCompilation();
final RubyMethod method = ModuleOperations.lookupMethod(rubyClass, name.toString());
if (method == null) {
throw new RaiseException(getContext().getCoreLibrary().noMethodError(name.toString(), rubyClass.toString(), this));
}
rubyClass.undefMethod(this, method);
return rubyClass;
}