private IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
private IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
private IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
public static IRubyObject useBindingSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
public void preExtensionLoad(IRubyObject self) { pushFrame(); getCurrentFrame().setSelf(self); getCurrentFrame().setVisibility(Visibility.PUBLIC); }
public void preExtensionLoad(IRubyObject self) { pushFrame(); getCurrentFrame().setSelf(self); getCurrentFrame().setVisibility(Visibility.PUBLIC); }
public void preAdoptThread() { pushFrame(); pushRubyClass(runtime.getObject()); getCurrentFrame().setSelf(runtime.getTopSelf()); }
public void preAdoptThread() { pushFrame(); pushRubyClass(runtime.getObject()); getCurrentFrame().setSelf(runtime.getTopSelf()); }
private Block setupBlock(Block block) { // FIXME: This is an ugly hack to resolve JRUBY-1381; I'm not proud of it block = block.cloneBlock(); block.getBinding().setSelf(this); block.getBinding().getFrame().setSelf(this); return block; }
public Block cloneBlockForEval(IRubyObject self, EvalType evalType) { Block block = cloneBlock(); block.getBinding().setSelf(self); block.getBinding().getFrame().setSelf(self); block.setEvalType(evalType); return block; }
public void prepareTopLevel(RubyClass objectClass, IRubyObject topSelf) { pushFrame(); setCurrentVisibility(Visibility.PRIVATE); Frame frame = getCurrentFrame(); frame.setSelf(topSelf); getCurrentScope().getStaticScope().setModule(objectClass); }
public void preExtensionLoad(IRubyObject self) { pushFrame(); pushRubyClass(runtime.getObject()); getCurrentFrame().setSelf(self); getCurrentFrame().setVisibility(Visibility.PUBLIC); }
public Block cloneBlockForEval(IRubyObject self, EvalType evalType) { Block block = cloneBlock(); block.getBinding().setSelf(self); block.getBinding().getFrame().setSelf(self); block.setEvalType(evalType); return block; }
public Block deepCloneBlockForEval(IRubyObject self, EvalType evalType) { Block block = cloneBlockAndBinding(); block.getBinding().setSelf(self); block.getBinding().getFrame().setSelf(self); block.setEvalType(evalType); return block; }
public void preClassEval(StaticScope staticScope, RubyModule type) { pushRubyClass(type); pushFrameCopy(); getCurrentFrame().setSelf(type); getCurrentFrame().setVisibility(Visibility.PUBLIC); pushScope(DynamicScope.newDynamicScope(staticScope, null)); }
public void prepareTopLevel(RubyClass objectClass, IRubyObject topSelf) { pushFrame(); setCurrentVisibility(Visibility.PRIVATE); pushRubyClass(objectClass); Frame frame = getCurrentFrame(); frame.setSelf(topSelf); getCurrentScope().getStaticScope().setModule(objectClass); }
public void prepareTopLevel(RubyClass objectClass, IRubyObject topSelf) { pushFrame(); setCurrentVisibility(Visibility.PRIVATE); pushRubyClass(objectClass); Frame frame = getCurrentFrame(); frame.setSelf(topSelf); getCurrentScope().getStaticScope().setModule(objectClass); }
public void preCompiledClass(RubyModule type, StaticScope staticScope) { pushRubyClass(type); pushFrameCopy(); getCurrentFrame().setSelf(type); getCurrentFrame().setVisibility(Visibility.PUBLIC); staticScope.setModule(type); pushScope(DynamicScope.newDynamicScope(staticScope)); }
public void preCompiledClassDummyScope(RubyModule type, StaticScope staticScope) { pushRubyClass(type); pushFrameCopy(); getCurrentFrame().setSelf(type); getCurrentFrame().setVisibility(Visibility.PUBLIC); staticScope.setModule(type); pushScope(staticScope.getDummyScope()); }
public void preCompiledClassDummyScope(RubyModule type, StaticScope staticScope) { pushRubyClass(type); pushFrameCopy(); getCurrentFrame().setSelf(type); getCurrentFrame().setVisibility(Visibility.PUBLIC); staticScope.setModule(type); pushScope(staticScope.getDummyScope()); }