Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.runtime.callsite;
 
 
 public class ArefCallSite extends NormalCachingCallSite {
     public ArefCallSite() {
         super("[]");
    }
    @Override
    public IRubyObject call(ThreadContext contextIRubyObject callerIRubyObject selflong fixnum) {
        if (self.getMetaClass() == context.runtime.getArray()) {
            return ((RubyArrayself).entry(fixnum);
        }
        return super.call(contextcallerselffixnum);
    }
    @Override
    public IRubyObject call(ThreadContext contextIRubyObject callerIRubyObject selfIRubyObject arg) {
        if (self.getMetaClass() == context.runtime.getArray()) {
            return ((RubyArrayself).aref(arg);
        }
        return super.call(contextcallerselfarg);
    }
New to GrepCode? Check out our FAQ X