Exception: Lifelike::InsufficientValidCharacterError
- Inherits:
-
LifelikeError
- Object
- StandardError
- LifelikeError
- Lifelike::InsufficientValidCharacterError
- Defined in:
- lib/lifelike/error.rb
Instance Method Summary collapse
-
#initialize(valid_characters) ⇒ InsufficientValidCharacterError
constructor
A new instance of InsufficientValidCharacterError.
Constructor Details
#initialize(valid_characters) ⇒ InsufficientValidCharacterError
Returns a new instance of InsufficientValidCharacterError.
6 7 8 9 10 |
# File 'lib/lifelike/error.rb', line 6 def initialize(valid_characters) super 'Insufficient characters for determining life/death. ' \ 'Expected two of the following characters: ' \ "#{valid_characters.map { |c| "\"#{c}\"" }.join(', ') }" end |