Can anyone point me to the documentation (or the source!) that defines
the IO.expect method (parameters, return values, etc.)?
I can’t seem to find it anywhere.
Also, I’m interested in extending this routine to use Floats (not just
Fixnums) as timeout values (for a granularity of, say, 50
milliseconds).
Can anyone point me to the documentation (or the source!) that defines
the IO.expect method (parameters, return values, etc.)?
I can’t seem to find it anywhere.
I do not know about that. Could you mean REXML.expected? That is the
closest thing I can think. RDoc Documentation should have most
all the documentation there is.
Dan,
Where are you finding IO.expect ??
My Ruby (1.8) doesn’t seem to have it. ri tells me nothing.
Creating an IO object:
i = IO.new 2
( the handle for stderr )
Then doing:
i.methods.sort
Returns no method expect. Are you using some library that extends the
IO class?