class CodebreakerGem::Failing
Constants
- ERROR
Public Instance Methods
attempts_limit()
click to toggle source
# File lib/app/helpers/failing.rb, line 11 def attempts_limit error(:attempts_limit) end
hints_limit()
click to toggle source
# File lib/app/helpers/failing.rb, line 15 def hints_limit error(:hints_limit) end
player_name_length()
click to toggle source
# File lib/app/helpers/failing.rb, line 19 def player_name_length error(:player_name_length, min_length: Player::NAME_LENGTH_RANGE.min, max_length: Player::NAME_LENGTH_RANGE.max) end
secret_code_digits_range()
click to toggle source
# File lib/app/helpers/failing.rb, line 30 def secret_code_digits_range error(:secret_code_digits_range, min_value: Guess::ELEMENT_VALUE_RANGE.min, max_value: Guess::ELEMENT_VALUE_RANGE.max) end
secret_code_length()
click to toggle source
# File lib/app/helpers/failing.rb, line 25 def secret_code_length error(:secret_code_length, code_length: Game::SECRET_CODE_LENGTH) end
unexpected_command()
click to toggle source
# File lib/app/helpers/failing.rb, line 40 def unexpected_command display(error(:unexpected_command)) end
unexpected_difficulty()
click to toggle source
# File lib/app/helpers/failing.rb, line 7 def unexpected_difficulty error(:unexpected_difficulty) end
unexpected_option()
click to toggle source
# File lib/app/helpers/failing.rb, line 36 def unexpected_option display(error(:unexpected_option)) end
Private Instance Methods
error(error, *parameters)
click to toggle source
# File lib/app/helpers/failing.rb, line 46 def error(error, *parameters) get(ERROR, error, *parameters) end