| Modifier and Type | Method and Description |
|---|---|
| public void | copyInstanceVariablesInto(InstanceVariables
the thing to copy into other)Copies all instance variables from the given object into the receiver |
| public IRubyObject | |
| public boolean | |
| public IRubyObject | |
| public default void | forEachInstanceVariable(BiConsumer<String, IRubyObject>
a consumer for each variable accessor)Iterate over all instance variable name/value pairs for this object. |
| public default void | forEachInstanceVariableName(Consumer<String>
consumer for the names consumer)Iterate over all instance variable names for this object. |
| public IRubyObject | Returns: the named instance variable if present, else nullthe name of an instance variable name)Returns the named instance variable if present, else null. |
| public List | |
| public List | |
| public boolean | Returns: true if object has the named instance variable.the name of an instance variable name)Returns true if object has the named instance variable. |
| public IRubyObject | Returns: the value of the remove variable, if present; else nullthe name of the variable to remove name)Removes the named instance variable, if present, returning its value. |
| public IRubyObject | Returns: valuethe name of an instance variable name, IRubyObject the value to be set value)Sets the named instance variable to the specified value. |
| copyInstanceVariablesInto | back to summary |
|---|---|
| public void copyInstanceVariablesInto(InstanceVariables other) Copies all instance variables from the given object into the receiver
| |
| fastGetInstanceVariable | back to summary |
|---|---|
| public IRubyObject fastGetInstanceVariable(String internedName)
Deprecated
| |
| fastHasInstanceVariable | back to summary |
|---|---|
| public boolean fastHasInstanceVariable(String internedName)
Deprecated
| |
| fastSetInstanceVariable | back to summary |
|---|---|
| public IRubyObject fastSetInstanceVariable(String internedName, IRubyObject value)
Deprecated
| |
| forEachInstanceVariable | back to summary |
|---|---|
| public default void forEachInstanceVariable(BiConsumer<String, IRubyObject> accessor) Iterate over all instance variable name/value pairs for this object.
| |
| forEachInstanceVariableName | back to summary |
|---|---|
| public default void forEachInstanceVariableName(Consumer<String> consumer) Iterate over all instance variable names for this object. | |
| getInstanceVariable | back to summary |
|---|---|
| public IRubyObject getInstanceVariable(String name) Returns the named instance variable if present, else null.
| |
| getInstanceVariableList | back to summary |
|---|---|
| public List list of instance variables
| |
| getInstanceVariableNameList | back to summary |
|---|---|
| public List list of instance variables as Strings | |
| hasInstanceVariable | back to summary |
|---|---|
| public boolean hasInstanceVariable(String name) Returns true if object has the named instance variable.
| |
| removeInstanceVariable | back to summary |
|---|---|
| public IRubyObject removeInstanceVariable(String name) Removes the named instance variable, if present, returning its value.
| |
| setInstanceVariable | back to summary |
|---|---|
| public IRubyObject setInstanceVariable(String name, IRubyObject value) Sets the named instance variable to the specified value.
| |