This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Day | |
attr_accessor :day, :start_at, :end_at | |
def initialize(day, start_at, end_at) | |
@day = day | |
@start_at = start_at | |
@end_at = end_at | |
end | |
def same_time?(other_day) | |
return false if other_day.nil? |