containingClass.addMethod(mname, newMethod);
if (context.getCurrentVisibility() == Visibility.MODULE_FUNCTION) {
RubyModule singleton = containingClass.getSingletonClass();
singleton.addMethod(mname, new WrapperMethod(singleton, newMethod, Visibility.PUBLIC));
containingClass.callMethod(context, "singleton_method_added", runtime.fastNewSymbol(mname));
}
// 'class << state.self' and 'class << obj' uses defn as opposed to defs
if (containingClass.isSingleton()) {