halogenandtoast/timelord

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

Summary

Maintainability
A
0 mins
Test Coverage
module Timelord
  class NextTuesdayMatcher < Matcher
    REGEX = /\bnext tues\b/

      def to_date
        NextWeekday.new(DAY_NAMES.index("tuesday"), today).to_date
      end
  end
end