Module: BusinessCalendar::Shim

Defined in:
lib/business_calendar/ruby18_shim.rb

Instance Method Summary collapse

Instance Method Details

#saturday?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/business_calendar/ruby18_shim.rb', line 2

def saturday?
  wday == 6
end

#sunday?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/business_calendar/ruby18_shim.rb', line 6

def sunday?
  wday == 0
end