lib/repeatable/expression/weekday_in_month.rb in repeatable-0.1.0 vs lib/repeatable/expression/weekday_in_month.rb in repeatable-0.2.0

- old
+ new

@@ -8,9 +8,13 @@ def include?(date) day_matches?(date) && week_matches?(date) end + def to_h + { weekday_in_month: { weekday: weekday, count: count } } + end + private attr_reader :weekday, :count def day_matches?(date)