Logo Search packages:      
Sourcecode: jruby1.1 version File versions

final boolean org::jruby::RubyObject::respondsTo ( String  name  )  [inline, inherited]

Does this object respond to the specified message? Uses a shortcut if it can be proved that respond_to? haven't been overridden.

Implements org::jruby::runtime::builtin::IRubyObject.

Definition at line 571 of file RubyObject.java.

        if(getMetaClass().searchMethod("respond_to?") == getRuntime().getRespondToMethod()) {
            return getMetaClass().isMethodBound(name, false);
        } else {
            return callMethod(getRuntime().getCurrentContext(),"respond_to?",getRuntime().newSymbol(name)).isTrue();

Generated by  Doxygen 1.6.0   Back to index