| Modifier and Type | Field and Description |
|---|---|
| protected final RubyModule | origin
The module to which this include origins. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected synchronized Map | |
| protected Map | |
| public String | getName(ThreadContext context)
Overrides org. Generate a fully-qualified class name or a #-style name for anonymous and singleton classes. |
| public RubyModule | |
| public RubyModule | getOrigin()
Overrides org. In an included or prepended module what is the ACTUAL module it represents? |
| public IRubyObject | id()
Overrides org. Implements org. We don't want to reveal ourselves to Ruby code, so origin this operation. |
| public boolean | isClass()
Overrides org. Implements org. Specifically polymorphic method that are meant to be overridden by classes to specify that they are classes in an easy way. |
| public boolean | isImmediate()
Overrides org. Implements org. Is object immediate (def: Fixnum, Symbol, true, false, nil?). |
| public boolean | isModule()
Overrides org. Implements org. Specifically polymorphic method that are meant to be overridden by modules to specify that they are modules in an easy way. |
| public void | setMetaClass(RubyClass
the meta class to set newRubyClass)Overrides org. Makes it possible to change the metaclass of an object. |
| origin | back to summary |
|---|---|
| protected final RubyModule origin The module to which this include origins. | |
| IncludedModule | back to summary |
|---|---|
| public IncludedModule(Ruby runtime, RubyClass superClass, RubyModule origin) | |
| getClassVariables | back to summary |
|---|---|
| protected synchronized Map Overrides org.
| |
| getClassVariablesForRead | back to summary |
|---|---|
| protected Map Overrides org.
| |
| getName | back to summary |
|---|---|
| public String getName(ThreadContext context) Overrides org. Doc from org. Generate a fully-qualified class name or a #-style name for anonymous and singleton classes. Ruby C equivalent = "classname" | |
| getNonIncludedClass | back to summary |
|---|---|
| public RubyModule getNonIncludedClass() Overrides org. Deprecated
| |
| getOrigin | back to summary |
|---|---|
| public RubyModule getOrigin() Overrides org. Doc from org. In an included or prepended module what is the ACTUAL module it represents?
| |
| id | back to summary |
|---|---|
| public IRubyObject id() Overrides org. Implements org. We don't want to reveal ourselves to Ruby code, so origin this operation.
| |
| isClass | back to summary |
|---|---|
| public boolean isClass() Overrides org. Implements org. Doc from org. Specifically polymorphic method that are meant to be overridden by classes to specify that they are classes in an easy way.
| |
| isImmediate | back to summary |
|---|---|
| public boolean isImmediate() Overrides org. Implements org. Doc from org. Is object immediate (def: Fixnum, Symbol, true, false, nil?).
| |
| isModule | back to summary |
|---|---|
| public boolean isModule() Overrides org. Implements org. Doc from org. Specifically polymorphic method that are meant to be overridden by modules to specify that they are modules in an easy way.
| |
| setMetaClass | back to summary |
|---|---|
| public void setMetaClass(RubyClass newRubyClass) Overrides org. Doc from org. 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. | |