Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ir.operands;
 
 // Records the nil object
 
Represents nil. Note: We used to protect the constructor, but since manager is the new way I got lazy and removed protected.
public class Nil extends ImmutableLiteral {
    @Override
    public Object createCacheObject(ThreadContext context) {
        return context.nil;
    }
    
    @Override
    public String toString() { 
        return "nil";
    }
    @Override
    public void visit(IRVisitor visitor) {
        visitor.Nil(this);
    }
New to GrepCode? Check out our FAQ X