Exception: Enumerable::FirstAndOnly::CountNotOne

Inherits:
StandardError
  • Object
show all
Defined in:
lib/first_and_only.rb

Instance Method Summary collapse

Constructor Details

#initialize(count) ⇒ CountNotOne

Returns a new instance of CountNotOne.



11
12
13
# File 'lib/first_and_only.rb', line 11

def initialize(count)
  super("Expected the count to be 1, but it was #{count}.")
end