class NaturalDateExpression::DateMatch
Attributes
first_matched_expression[R]
reference_date[R]
tested_date[R]
Public Class Methods
new(match, first_matched_expression, tested_date, reference_date)
click to toggle source
# File lib/natural-date/natural_date_expression.rb, line 7 def initialize match, first_matched_expression, tested_date, reference_date @match = match @first_matched_expression = first_matched_expression @tested_date = tested_date @reference_date = reference_date end
Public Instance Methods
matches?()
click to toggle source
# File lib/natural-date/natural_date_expression.rb, line 14 def matches? @match end