halogenandtoast/timelord

View on GitHub
lib/timelord/matchers/long_month_matcher.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Timelord
  class LongMonthMatcher < FutureMatcher
    REGEX = /\b(#{LONG_MATCHER})\b/i

    private

    def parse_date
      Date.civil(today.year, LONG_MONTHS.index(match[1].downcase) + 1)
    end
  end
end