module MonthMatcher

Public Class Methods

match?(date, reference_date, expression_map) click to toggle source
# File lib/natural-date/matcher/month_matcher.rb, line 2
def self.match? date, reference_date, expression_map
  !expression_map[:month] || expression_map[:month].include?(date.month)
end