Ejemplo n.º 1
0
 void pre(
     ThreadContext context,
     IRubyObject self,
     RubyModule implementer,
     String name,
     Block block,
     StaticScope scope) {
   context.preMethodFrameOnly(implementer, name, self, block);
 }
Ejemplo n.º 2
0
 protected void pre(
     InterpreterContext ic,
     ThreadContext context,
     IRubyObject self,
     String name,
     Block block,
     RubyModule implClass) {
   // update call stacks (push: frame, class, scope, etc.)
   context.preMethodFrameOnly(implClass, name, self, block);
   if (ic.pushNewDynScope()) {
     context.pushScope(DynamicScope.newDynamicScope(ic.getStaticScope()));
   }
 }