Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/weekly_calendar/helpers.rb
Instance Method Summary collapse
Instance Method Details
#same_day_as?(date_or_time) ⇒ Boolean
12 13 14 15 16 17 18 |
# File 'lib/weekly_calendar/helpers.rb', line 12 def same_day_as?(date_or_time) if date_or_time.is_a?(Date) date_or_time.yday == self.yday && date_or_time.year == self.year else self == date_or_time end end |