Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * To change this template, choose Tools | Templates
  * and open the template in the editor.
  */
 
 package org.jruby.runtime.builtin;
 
 import java.util.List;

Interface that represents the instance variable aspect of Ruby objects.

Author(s):
headius
public interface InstanceVariables {
    //
    // INSTANCE VARIABLE METHODS
    //

    
Returns true if object has the named instance variable.

Parameters:
name the name of an instance variable
Returns:
true if object has the named instance variable.
    boolean hasInstanceVariable(String name);
    @Deprecated
    boolean fastHasInstanceVariable(String internedName);
    
    
Returns the named instance variable if present, else null.

Parameters:
name the name of an instance variable
Returns:
the named instance variable if present, else null
    @Deprecated
    IRubyObject fastGetInstanceVariable(String internedName);

    
Sets the named instance variable to the specified value.

Parameters:
name the name of an instance variable
value the value to be set
    
    @Deprecated
    IRubyObject fastSetInstanceVariable(String internedNameIRubyObject value);

    
Removes the named instance variable, if present, returning its value.

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

Returns:
instance variables

Returns:
instance variable names
Copies all instance variables from the given object into the receiver
New to GrepCode? Check out our FAQ X