Module: MonthMatcher

Defined in:
lib/natural-date/matcher/month_matcher.rb

Class Method Summary collapse

Class Method Details

.match?(date, reference_date, expression_map) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# 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