On Sat, 26 Nov 2005, Sean E. Russell wrote:

> Hi,
> 
> I'm having a bit of a trouble with Ruby pipes and am looking for an efficient 
> solution to the problem.
> 
> Consider:
> 
> 	a,b = IO.pipe
> 
> Both a and b are IO objects, and there is nothing (that I can tell) to 
> differentiate them from any other sort of IO object.  That is, there is no 
> way to tell that they are pipes.  This is a failure in the typing system.

I found this:
irb(main):001:0> a,b = IO.pipe
=> [#<IO:0x20d400>, #<IO:0x20d3d0>]
irb(main):002:0> a.stat.pipe?
=> true


Is that right?   pipe? is a method of File::Stat, so it is well
hidden.... :-)

        Hugh