takaoueda
11/11/2004 1:45:00 AM
It seems pos is undefined for STDIN.
In order to use scanf for console input I had to change the line
start_position = pos
in class IO, def scanf(str, &b) in lib/ruby/1.8/scanf.rb into
if self == STDIN
start_position = 0
else
start_position = pos
end
Any ideas?