class Array
Public Instance Methods
any_weekend?()
click to toggle source
# File lib/wheres_my_weekend.rb, line 52 def any_weekend? map(&:weekend?).any? end
remove_weekends()
click to toggle source
# File lib/wheres_my_weekend.rb, line 60 def remove_weekends reject(&:weekend?) end
weekend_dates()
click to toggle source
# File lib/wheres_my_weekend.rb, line 56 def weekend_dates reject { |date| !date.weekend? } end