lib/repeatable/expression/weekday.rb in repeatable-0.1.0 vs lib/repeatable/expression/weekday.rb in repeatable-0.2.0
- old
+ new
@@ -7,9 +7,13 @@
def include?(date)
date.wday == weekday
end
+ def to_h
+ { weekday: { weekday: weekday } }
+ end
+
private
attr_reader :weekday
end
end