Ejemplo n.º 1
0
            public static Enumerator/*!*/ Reinitialize(Enumerator/*!*/ self, object targetObject, [DefaultProtocol, Optional]string targetName, 
                [NotNull]params object[] targetArguments) {

                self._targetObject = targetObject;
                self._targetName = targetName ?? "each";
                self._targetArguments = targetArguments;
                return self;
            }
Ejemplo n.º 2
0
 public static object Each(RubyScope/*!*/ scope, BlockParam/*!*/ block, Enumerator/*!*/ self) {
     // MRI doesn't send "send" message: 
     return KernelOps.SendMessageOpt(scope, block, self._targetObject, self._targetName, self._targetArguments);
 }
Ejemplo n.º 3
0
 public static object Each(RubyScope/*!*/ scope, BlockParam/*!*/ block, Enumerator/*!*/ self)
 {
     return self._impl.Each(scope, block);
 }
Ejemplo n.º 4
0
 public static Enumerator/*!*/ Reinitialize(Enumerator/*!*/ self, object targetObject) {
     return Reinitialize(self, targetObject, null, ArrayUtils.EmptyObjects);
 }
Ejemplo n.º 5
0
 public static Enumerator Reinitialize(Enumerator/*!*/ self, object targetObject, [DefaultProtocol, Optional]string targetName,
     params object[] targetArguments)
 {
     self._impl = new Wrapper(targetObject, targetName, targetArguments);
     return self;
 }