Exception: Enumerable::FirstAndOnly::CountNotOne
- Inherits:
-
StandardError
- Object
- StandardError
- Enumerable::FirstAndOnly::CountNotOne
- Defined in:
- lib/first_and_only.rb
Instance Method Summary collapse
-
#initialize(count) ⇒ CountNotOne
constructor
A new instance of CountNotOne.
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 |