private ReadLines ( |
||
self | ||
path | [ | |
limit | [ | |
리턴 | RubyArray |
public static RubyArray /*!*/ TOA(RubyContext /*!*/ context, object self) { RubyArray result = new RubyArray(); RubyArray lines; while (context.InputProvider.HasMoreFiles()) { lines = RubyIOOps.ReadLines(context, context.InputProvider.GetOrResetCurrentStream(), -1); //TODO: result.append(lines)??? foreach (var line in lines) { result.Add(line); } } return(result); }
public static RubyArray /*!*/ ReadLines(RubyContext /*!*/ context, object self, [DefaultProtocol] MutableString separator, [DefaultProtocol] int limit) { return(RubyIOOps.ReadLines(context, context.InputProvider.GetOrResetCurrentStream(), separator, limit)); }
public static RubyArray /*!*/ ReadLines(RubyContext /*!*/ context, object self, DynamicNull separator) { return(RubyIOOps.ReadLines(context, context.InputProvider.GetOrResetCurrentStream(), separator)); }
public static RubyArray /*!*/ ReadLines(RubyContext /*!*/ context, object self, [DefaultProtocol, NotNull] Union <MutableString, int> separatorOrLimit) { return(RubyIOOps.ReadLines(context, context.InputProvider.GetOrResetCurrentStream(), separatorOrLimit)); }
public static RubyArray /*!*/ ReadLines(RubyContext /*!*/ context, object self) { return(RubyIOOps.ReadLines(context, context.InputProvider.GetOrResetCurrentStream())); }