public static class BasicObjectStub.DummyInstanceVariables extends Object implements InstanceVariables
| Constructor and Description |
|---|
BasicObjectStub.DummyInstanceVariables(IRubyObject nil) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyInstanceVariablesInto(InstanceVariables other)
Copies all instance variables from the given object into the receiver
|
IRubyObject |
fastGetInstanceVariable(String internedName) |
boolean |
fastHasInstanceVariable(String internedName) |
IRubyObject |
fastSetInstanceVariable(String internedName,
IRubyObject value) |
IRubyObject |
getInstanceVariable(String name)
Returns the named instance variable if present, else null.
|
List<Variable<IRubyObject>> |
getInstanceVariableList() |
List<String> |
getInstanceVariableNameList() |
boolean |
hasInstanceVariable(String name)
Returns true if object has the named instance variable.
|
IRubyObject |
removeInstanceVariable(String name)
Removes the named instance variable, if present, returning its
value.
|
IRubyObject |
setInstanceVariable(String name,
IRubyObject value)
Sets the named instance variable to the specified value.
|
public BasicObjectStub.DummyInstanceVariables(IRubyObject nil)
public boolean hasInstanceVariable(String name)
InstanceVariableshasInstanceVariable in interface InstanceVariablesname - the name of an instance variablepublic boolean fastHasInstanceVariable(String internedName)
fastHasInstanceVariable in interface InstanceVariablespublic IRubyObject getInstanceVariable(String name)
InstanceVariablesgetInstanceVariable in interface InstanceVariablesname - the name of an instance variablepublic IRubyObject fastGetInstanceVariable(String internedName)
fastGetInstanceVariable in interface InstanceVariablespublic IRubyObject setInstanceVariable(String name, IRubyObject value)
InstanceVariablessetInstanceVariable in interface InstanceVariablesname - the name of an instance variablevalue - the value to be setpublic IRubyObject fastSetInstanceVariable(String internedName, IRubyObject value)
fastSetInstanceVariable in interface InstanceVariablespublic IRubyObject removeInstanceVariable(String name)
InstanceVariablesremoveInstanceVariable in interface InstanceVariablesname - the name of the variable to removepublic List<Variable<IRubyObject>> getInstanceVariableList()
getInstanceVariableList in interface InstanceVariablespublic List<String> getInstanceVariableNameList()
getInstanceVariableNameList in interface InstanceVariablespublic void copyInstanceVariablesInto(InstanceVariables other)
InstanceVariablescopyInstanceVariablesInto in interface InstanceVariablesCopyright © 2001-2015 JRuby. All Rights Reserved.