Exception: Emendate::MonthDayYearError

Inherits:
StandardError
  • Object
show all
Includes:
Module.new
Defined in:
lib/emendate/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(tokens) ⇒ MonthDayYearError

Returns a new instance of MonthDayYearError.



79
80
81
82
83
# File 'lib/emendate/errors.rb', line 79

def initialize(tokens)
  m = "Cannot determine any valid month/day/year combination for "\
      "#{tokens.map(&:lexeme).join("-")}"
  super(m)
end