jruby/docs BETA
Navigation
org.jruby.runtime.builtin 5
I IRubyObject
I InstanceVariables
I InternalVariables
I RubyJavaObject
I Variable
InternalVariables — members 4
M get_internal_variable(name) Object
M has_internal_variable(name) boolean
M remove_internal_variable(name) Object
C set_internal_variable(name, value)

org.jruby.runtime.builtin.InternalVariables

interface abstract 4 members

Interface that gives access to the internal variables of a Ruby object.

Instance Methods

get_internal_variable

Object get_internal_variable ( String name )
Java: getInternalVariable(String name)

Returns the named internal variable if present, else null. Use only for internal variables (not ivar/cvar/constant).

nametypedescription
nameStringthe name of an internal variable

Returns: the named internal variable if present, else null

has_internal_variable

boolean has_internal_variable ( String name )
Java: hasInternalVariable(String name)

Returns true if object has the named internal variable. Use only for internal variables (not ivar/cvar/constant).

nametypedescription
nameStringthe name of an internal variable

Returns: true if object has the named internal variable.

remove_internal_variable

Object remove_internal_variable ( String name )
Java: removeInternalVariable(String name)

Removes the named internal variable, if present, returning its value. Use only for internal variables (not ivar/cvar/constant).

nametypedescription
nameStringthe name of the variable to remove

Returns: the value of the remove variable, if present; else null

set_internal_variable

set_internal_variable ( String name, Object value )
Java: setInternalVariable(String name, Object value)

Sets the named internal variable to the specified value. Use only for internal variables (not ivar/cvar/constant).

nametypedescription
nameStringthe name of an internal variable
valueObjectthe value to be set