Method: File::Stat#pipe?

Defined in:
file.c

#pipe?Boolean

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

Returns:

  • (Boolean)


5771
5772
5773
5774
5775
5776
5777
5778
5779
# File 'file.c', line 5771

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

#endif
    return Qfalse;
}