lib/calrom/formatter/easter.rb in calrom-0.3.0 vs lib/calrom/formatter/easter.rb in calrom-0.4.0
- old
+ new
@@ -1,8 +1,8 @@
module Calrom
module Formatter
# Prints (only) date of Easter for the specified year.
- class Easter
+ class Easter < Formatter
def call(calendar, date_range)
unless date_range.is_a?(Year) || date_range.is_a?(Month)
raise 'unexpected date range, expected a year'
end