Interface that gives access to the internal variables of a Ruby object.
getInternalVariable(String name)Returns the named internal variable if present, else null. Use only for internal variables (not ivar/cvar/constant).
| name | type | description |
|---|---|---|
| name | String | the name of an internal variable |
Returns: the named internal variable if present, else null
hasInternalVariable(String name)Returns true if object has the named internal variable. Use only for internal variables (not ivar/cvar/constant).
| name | type | description |
|---|---|---|
| name | String | the name of an internal variable |
Returns: true if object has the named internal variable.
removeInternalVariable(String name)Removes the named internal variable, if present, returning its value. Use only for internal variables (not ivar/cvar/constant).
| name | type | description |
|---|---|---|
| name | String | the name of the variable to remove |
Returns: the value of the remove variable, if present; else null
setInternalVariable(String name, Object value)Sets the named internal variable to the specified value. Use only for internal variables (not ivar/cvar/constant).
| name | type | description |
|---|---|---|
| name | String | the name of an internal variable |
| value | Object | the value to be set |