Esempio n. 1
0
 public static object Each(RubyContext/*!*/ context, BlockParam block, RubyIO/*!*/ self, DynamicNull separator) {
     return Each(context, block, self, null, -1);
 }
Esempio n. 2
0
 public static MutableString/*!*/ Read(RubyIO/*!*/ self, DynamicNull bytes, [DefaultProtocol, Optional]MutableString buffer) {
     buffer = PrepareReadBuffer(self, buffer);
     self.AppendBytes(buffer, Int32.MaxValue);
     return buffer;
 }
Esempio n. 3
0
 public static object Cycle(CallSiteStorage<EachSite>/*!*/ each, BlockParam block, object self, DynamicNull iterations) {
     return (block != null) ? Cycle(each, block, self, Int32.MaxValue) : GetCycleEnumerator(each, block, self, Int32.MaxValue);
 }
Esempio n. 4
0
 public static MutableString Gets(RubyScope/*!*/ scope, RubyIO/*!*/ self, DynamicNull separator) {
     return Gets(scope, self, null, -1);
 }
Esempio n. 5
0
 public static object Each(RubyContext/*!*/ context, BlockParam block, object self, DynamicNull separator)
 {
     RubyIOOps.Each(context, block, context.InputProvider.GetOrResetCurrentStream(), separator);
     return self;
 }
Esempio n. 6
0
 public static MutableString/*!*/ Read(RubyIO/*!*/ self, DynamicNull bytes, [DefaultProtocol, Optional]MutableString buffer) {
     if (buffer == null) {
         buffer = MutableString.CreateBinary();
     } else {
         buffer.Clear();
     } 
     
     self.AppendBytes(buffer, Int32.MaxValue);
     return buffer;
 }
Esempio n. 7
0
 public static MutableString ReadLine(RubyScope/*!*/ scope, object self, DynamicNull separator)
 {
     return RubyIOOps.ReadLine(scope, scope.RubyContext.InputProvider.GetOrResetCurrentStream(), separator);
 }
Esempio n. 8
0
 public static MutableString ToJson(DynamicNull self)
 {
     return JSON_NULL;
 }
Esempio n. 9
0
 public static bool op_Implicit(DynamicNull self)
 {
     Debug.Assert(self == null);
     return false;
 }
Esempio n. 10
0
 public static MutableString Read(RubyContext/*!*/ context, DynamicNull bytes, [DefaultProtocol, Optional]MutableString buffer)
 {
     return RubyIOOps.Read(context.InputProvider.GetOrResetCurrentStream(), bytes, buffer);
 }
Esempio n. 11
0
 public static MutableString/*!*/ SystemRead(StringIO/*!*/ self, DynamicNull bytes, [DefaultProtocol, NotNull]MutableString buffer) {
     return Read(self, buffer, true);
 }
Esempio n. 12
0
 public static RubyArray ReadLines(RubyContext/*!*/ context, StringIO/*!*/ self, DynamicNull separator)
 {
     return ReadLines(self, null, -1);
 }
Esempio n. 13
0
 public static object EachLine(RubyContext/*!*/ context, BlockParam block, StringIO/*!*/ self, DynamicNull separator)
 {
     return EachLine(block, self, null, -1);
 }
Esempio n. 14
0
 public static MutableString/*!*/ ReadLine(RubyScope/*!*/ scope, RubyIO/*!*/ self, DynamicNull separator) {
     return ReadLine(scope, self, null, -1);
 }
Esempio n. 15
0
 public static RubyArray ReadLines(RubyContext/*!*/ context, object self, DynamicNull separator)
 {
     return RubyIOOps.ReadLines(context, context.InputProvider.GetOrResetCurrentStream(), separator);
 }
Esempio n. 16
0
 public static RubyArray/*!*/ ReadLines(RubyContext/*!*/ context, RubyIO/*!*/ self, DynamicNull separator) {
     return ReadLines(context, self, null, -1);
 }
Esempio n. 17
0
 public static MutableString ToJson(DynamicNull self, [Optional]GeneratorState state, [Optional]Int32 depth)
 {
     return Generator.ToJson(self);
 }