lib/hiccup/enumerable/monthly_enumerator.rb in hiccup-0.6.0 vs lib/hiccup/enumerable/monthly_enumerator.rb in hiccup-0.6.1
- old
+ new
@@ -5,10 +5,10 @@
class MonthlyEnumerator < ScheduleEnumerator
def self.for(schedule)
if schedule.monthly_pattern.empty?
NeverEnumerator
- elsif schedule.monthly_pattern.all? { |occurrence| Fixnum === occurrence }
+ elsif schedule.monthly_pattern.all? { |occurrence| Integer === occurrence }
MonthlyDateEnumerator
else
self
end
end