Object
# File lib/chronic/mini_date.rb, line 34 def equals?(other) @month == other.month and @day == other.day end
# File lib/chronic/mini_date.rb, line 18 def is_between?(md_start, md_end) return false if (@month == md_start.month && @month == md_end.month) && (@day < md_start.day || @day > md_end.day) return true if (@month == md_start.month && @day >= md_start.day) || (@month == md_end.month && @day <= md_end.day) i = (md_start.month % 12) + 1 until i == md_end.month return true if @month == i i = (i % 12) + 1 end return false end
Generated with the Darkfish Rdoc Generator 2.