Exception: Lifelike::InsufficientValidCharacterError

Inherits:
LifelikeError
  • Object
show all
Defined in:
lib/lifelike/error.rb

Instance Method Summary collapse

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