Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Date#friday?
friday? → true or false
ext/date/date_core.c
View on GitHub ↗
static VALUE
d_lite_friday_p(VALUE self)
{
get_d1(self);
return f_boolcast(m_wday(dat) == 5);
}
Returns true if self is a Friday, false otherwise.