class Chronic::Scalar
def self.scan_for_days(token, post_token)
post_token - The next Token object.
token - The Token object we want to scan.
def self.scan_for_days(token, post_token) if token.word =~ /^\d\d?$/ toi = token.word.to_i unless toi > 31 || toi < 1 || (post_token && DAY_PORTIONS.include?(post_token.word)) return ScalarDay.new(toi) end end end