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

void org::jruby::RubyObject::setMetaClass ( RubyClass  metaClass  )  [inline, inherited]

Makes it possible to change the metaclass of an object. In practice, this is a simple version of Smalltalks Become, except that it doesn't work when we're dealing with subclasses. In practice it's used to change the singleton/meta class used, without changing the "real" inheritance chain.

Reimplemented in org::jruby::IncludedModuleWrapper.

Definition at line 475 of file RubyObject.java.

Referenced by org::jruby::RubyString::newInstance(), and org::jruby::RubyObject::rbClone().

        this.metaClass = metaClass;

Generated by  Doxygen 1.6.0   Back to index