Class: ReeDate::IsWeekDay

Inherits:
Object
  • Object
show all
Includes:
Ree::FnDSL
Defined in:
lib/ree_lib/packages/ree_date/package/ree_date/functions/is_week_day.rb

Instance Method Summary collapse

Instance Method Details

#call(date = nil) ⇒ Object



13
14
15
16
# File 'lib/ree_lib/packages/ree_date/package/ree_date/functions/is_week_day.rb', line 13

def call(date = nil)
  date = date || today
  !WEEKEND_DAYS.include?(date.wday)
end