stringio e$B$N%a%s%F%J$N$J$+$@$5$s!"$b$7$/$O@.@%$5$se(B
e$B1sF#$G$9!#e(B
to_int e$B$r<BAu$7$?%*%V%8%’%/%H$re(B StringIO#ungetc
e$B$KM?$($?;~$N5sF0$,e(B
1.8 e$B$He(B 1.9 e$B$G0c$$$^$9!#e(B
1.8 e$B$G$OIaDL$K<u$1F~$l$ke(B
$ ruby18 -rstringio -e ’
o = Object.new
def o.to_int; ?A.ord; end
StringIO.new.ungetc(o)
’
1.9 e$B$G$ONc30e(B
$ ruby19 -rstringio -e ’
o = Object.new
def o.to_int; ?A.ord; end
StringIO.new.ungetc(o)
’
-e:4:in ungetc': can't convert Object into String (TypeError) from -e:4:in
’
M17N e$BBP1~$N1F6A$@$H;W$$$^$9$,!"$3$l$Oe(B 1.9
e$B$+$i$N;EMMJQ99$H$7$^$9$+!)e(B