Exception: Emendate::MonthLiteralError
- Inherits:
-
StandardError
- Object
- StandardError
- Emendate::MonthLiteralError
- Includes:
- Module.new
- Defined in:
- lib/emendate/errors.rb
Instance Method Summary collapse
-
#initialize(lexeme) ⇒ MonthLiteralError
constructor
A new instance of MonthLiteralError.
Constructor Details
#initialize(lexeme) ⇒ MonthLiteralError
Returns a new instance of MonthLiteralError.
89 90 91 92 93 94 |
# File 'lib/emendate/errors.rb', line 89 def initialize(lexeme) m = "Cannot assign literal for month value `#{lexeme}`. Dates will not "\ "be translateable until DateUtils and/or MonthAlpha is updated "\ "to assign the appropriate literal value" super(m) end |