Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
File::Stat#pipe?
() -> bool
stat.pipe? → true or false
file.c
View on GitHub ↗
static VALUE
rb_stat_p(VALUE obj)
{
#ifdef S_IFIFO
if (S_ISFIFO(get_stat(obj)->st_mode)) return Qtrue;
#endif
return Qfalse;
}
Returns true if the operating system supports pipes and stat is a pipe; false otherwise.