public static DynamicMethod selectMethodMissing(ThreadContext context, RubyClass selfClass, Visibility visibility, String name, CallType callType) { Ruby runtime = context.runtime; if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = selfClass.searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, callType); }
public static DynamicMethod selectMethodMissing(RubyClass selfClass, Visibility visibility, String name, CallType callType) { Ruby runtime = selfClass.getClassRuntime(); if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = selfClass.searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, callType); }
public static DynamicMethod selectMethodMissing(RubyClass selfClass, Visibility visibility, String name, CallType callType) { Ruby runtime = selfClass.getClassRuntime(); if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = selfClass.searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, callType); }
public static DynamicMethod selectMethodMissing(ThreadContext context, IRubyObject receiver, Visibility visibility, String name, CallType callType) { Ruby runtime = context.runtime; if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = receiver.getMetaClass().searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, callType); }
public static DynamicMethod selectMethodMissing(ThreadContext context, IRubyObject receiver, Visibility visibility, String name, CallType callType) { Ruby runtime = context.runtime; if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = receiver.getMetaClass().searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, callType); }
public static DynamicMethod selectMethodMissing(ThreadContext context, IRubyObject receiver, Visibility visibility, String name, CallType callType) { Ruby runtime = context.runtime; if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = receiver.getMetaClass().searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, visibility, callType); }
public static DynamicMethod selectMethodMissing(RubyClass selfClass, Visibility visibility, String name, CallType callType) { Ruby runtime = selfClass.getClassRuntime(); if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = selfClass.searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, visibility, callType); }
public static DynamicMethod selectMethodMissing(ThreadContext context, RubyClass selfClass, Visibility visibility, String name, CallType callType) { final Ruby runtime = context.runtime; if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = selfClass.searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, visibility, callType); }
public static DynamicMethod selectMethodMissing(ThreadContext context, RubyClass selfClass, Visibility visibility, String name, CallType callType) { final Ruby runtime = context.runtime; if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = selfClass.searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, visibility, callType); }
public static DynamicMethod selectMethodMissing(ThreadContext context, IRubyObject receiver, Visibility visibility, String name, CallType callType) { Ruby runtime = context.runtime; if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = receiver.getMetaClass().searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, visibility, callType); }
public static DynamicMethod selectMethodMissing(ThreadContext context, RubyClass selfClass, Visibility visibility, String name, CallType callType) { Ruby runtime = context.runtime; if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = selfClass.searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, callType); }
public static DynamicMethod selectMethodMissing(RubyClass selfClass, Visibility visibility, String name, CallType callType) { Ruby runtime = selfClass.getClassRuntime(); if (name.equals("method_missing")) { return selectInternalMM(runtime, visibility, callType); } DynamicMethod methodMissing = selfClass.searchMethod("method_missing"); if (methodMissing.isUndefined() || methodMissing.equals(runtime.getDefaultMethodMissing())) { return selectInternalMM(runtime, visibility, callType); } return new MethodMissingMethod(methodMissing, visibility, callType); }