Exception: Suprdate::DateConstructionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/suprdate.rb

Overview

Errors caused by attempting to construct date objects that cannot be

Class Method Summary collapse

Class Method Details

.invalid_part_count(parts) ⇒ Object



77
78
79
80
# File 'lib/suprdate.rb', line 77

def self.invalid_part_count(parts)
  new('Expected a number arguments (parts) within range #{DATE_NUM_PARTS_RANGE} ' +
      'but received #{parts.nitems}')
end