module Kalendor::Subtract
Public Instance Methods
get_dates(from, upto ;)
click to toggle source
# File lib/kalendor/subtract.rb, line 4 def get_dates from, upto ; in_dates(include_dates, from, upto) - ex_dates(exclude_dates, from, upto) ; end
Private Instance Methods
ex_dates(cal, from, upto ;)
click to toggle source
# File lib/kalendor/subtract.rb, line 9 def ex_dates cal, from, upto ; Set.new(cal ? cal.get_dates(from, upto) : []) ; end
in_dates(cal, from, upto ;)
click to toggle source
# File lib/kalendor/subtract.rb, line 8 def in_dates cal, from, upto ; Set.new(cal ? cal.get_dates(from, upto) : (from..upto)) ; end