# File lib/chronic/repeaters/repeater_season.rb, line 46 def equals?(other) @month == other.month and day == other.day end
# File lib/chronic/repeaters/repeater_season.rb, line 33 def is_between?(md_start, md_end) return true if (@month == md_start.month and @day >= md_start.day) || (@month == md_end.month and @day <= md_end.day) i = md_start.month + 1 until i == md_end.month return true if @month == i i = (i+1) % 12 end return false end
# File lib/chronic/repeaters/repeater_season.rb, line 28 def initialize(month, day) @month = month @day = day end