public Method

Stat.pipe?

stat.pipe?     true or false

Returns true if the operating system supports pipes and stat is a pipe; false otherwise.

Source Code

/*
*  call-seq:
*     stat.pipe?    => true or false
*  
*  Returns <code>true</code> if the operating system supports pipes and
*  <i>stat</i> is a pipe; <code>false</code> otherwise.
*/

static VALUE
rb_stat_p(obj)
   VALUE obj;
{
#ifdef S_IFIFO
   if (S_ISFIFO(get_stat(obj)->st_mode)) return Qtrue;

#endif
   return Qfalse;
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.