Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.runtime.callsite;
 
 import org.jruby.Ruby;
 
 public class AsetCallSite extends NormalCachingCallSite {
     public AsetCallSite() {
        super("[]=");
    }
    @Override
    public IRubyObject call(ThreadContext contextIRubyObject callerIRubyObject selfIRubyObject arg0IRubyObject arg1) {
        Ruby runtime = context.runtime;
        if (self.getMetaClass() == runtime.getArray()) {
            RubyArray array = (RubyArray)self;
            return array.aset(arg0arg1);
        }
        return super.call(contextcallerselfarg0arg1);
    }
New to GrepCode? Check out our FAQ X