Module: TimeCrisis::Holiday::InstanceMethods

Defined in:
lib/time_crisis/holiday.rb

Instance Method Summary collapse

Instance Method Details

#holiday?Boolean

Returns:

  • (Boolean)


81
82
83
# File 'lib/time_crisis/holiday.rb', line 81

def holiday?
  TimeCrisis::Holiday.holidays.values.include?([self.month, self.day])
end