ARGF.read() causes ArgumentError


#1

e$B@DLZ$G$9!#e(B

e$B0z?t$r>JN,$7$?e(B ARGF.read e$B$,;H$($J$/$J$C$F$$$^$9!#e(B

tukumo:~ % ruby -v -e ‘ARGF.read’
ruby 1.9.0 (2007-01-03 patchlevel 0) [x86_64-linux]
-e:1:in read': wrong number of arguments (0 for 1) (ArgumentError) from -e:1:in


#2

e$B!!$5$5$@$G$9!#e(B

Minero A. wrote:

e$B0z?t$r>JN,$7$?e(B ARGF.read e$B$,;H$($J$/$J$C$F$$$^$9!#e(B

e$B!!$3$3$GJQ$o$C$?$i$7$$$N$G$9$,!"e(Bcommit log
e$B$K$O8@5Z$,L5$$$h$&$G$9!#e(B

$ svn log -r 11428

r11428 | matz | 2006-12-30 04:21:50 +0900 (Sat, 30 Dec 2006) | 19 lines

  • ext/stringio/stringio.c (strio_gets): accepts limit argument.

  • ext/stringio/stringio.c (strio_readline, strio_each,
    strio_readlines): ditto.

  • ext/stringio/stringio.c (strio_getline): add limit capability.

  • io.c (rb_io_gets_m): accepts limit argument. [ruby-talk:231563]

  • io.c (rb_io_readline, rb_io_readlines, rb_io_each_line, argf_getline):
    ditto.

  • io.c (appendline): add limit capability.

  • io.c (rb_io_getline_fast, rb_io_getline): ditto.

  • io.c (rb_io_getline): small refactoring for DRY.

  • io.c (rb_io_s_foreach, rb_io_s_readlines): small refactoring.


#3

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:30084] Re: ARGF.read() causes ArgumentError”
on Fri, 5 Jan 2007 14:49:25 +0900, SASADA Koichi removed_email_address@domain.invalid
writes:

|Minero A. wrote:
|> e$B0z?t$r>JN,$7$?e(B ARGF.read e$B$,;H$($J$/$J$C$F$$$^$9!#e(B
|
|e$B!!$3$3$GJQ$o$C$?$i$7$$$N$G$9$,!"e(Bcommit log e$B$K$O8@5Z$,L5$$$h$&$G$9!#e(B

e$B$9$$$^$;$s!#CV49%%9$G$9!#$5$-$[$I=$@5$r%3%%C%H$7$^$7$?!#e(B