core/src/main/java/org/jruby/RubyBasicObject.java
@Override
    public final boolean respondsToMissing(String name, boolean incPrivate) {
        CacheEntry entry = metaClass.searchWithCache("respond_to_missing?");
        DynamicMethod method = entry.method;
        // perhaps should try a smart version as for respondsTo above?
        if ( method.isUndefined() ) return false;
        final Ruby runtime = metaClass.runtime;
        return method.call(runtime.getCurrentContext(), this, entry.sourceModule,
            "respond_to_missing?", runtime.newSymbol(name), runtime.newBoolean(incPrivate)
        ).isTrue();
    }
/**
     * Does this object respond to the specified message via "method_missing?"
     */
Does this object respond to the specified message via "method_missing?"
Does this object respond to the specified message via " method_missing? "
@Override
    public final boolean respondsToMissing(String name, boolean incPrivate) {
        CacheEntry entry = metaClass.searchWithCache("respond_to_missing?");
        DynamicMethod method = entry.method;
        if ( method.isUndefined() ) return false;
        final Ruby runtime = metaClass.runtime;
        return method.call(runtime.getCurrentContext(), this, entry.sourceModule,
            "respond_to_missing?", runtime.newSymbol(name), runtime.newBoolean(incPrivate)
        ).isTrue();
    }
@ Override public final boolean respondsToMissing ( String name , boolean incPrivate ) { CacheEntry entry = metaClass . searchWithCache ( "respond_to_missing?" ) ; DynamicMethod method = entry . method ; if ( method . isUndefined ( ) ) return false ; final Ruby runtime = metaClass . runtime ; return method . call ( runtime . getCurrentContext ( ) , this , entry . sourceModule , "respond_to_missing?" , runtime . newSymbol ( name ) , runtime . newBoolean ( incPrivate ) ) . isTrue ( ) ; }
Does this object respond to the specified message via "method_missing?"
Does this object respond to the specified message via " method_missing? "
// perhaps should try a smart version as for respondsTo above?