Module: Validator
- Defined in:
- lib/codebreaker_artem/validator.rb
Class Method Summary collapse
Class Method Details
.code_valid?(input) ⇒ Boolean
2 3 4 |
# File 'lib/codebreaker_artem/validator.rb', line 2 def self.code_valid?(input) true if input =~ /^[1-6]{4}$/ end |
.win_mark?(mark) ⇒ Boolean
6 7 8 |
# File 'lib/codebreaker_artem/validator.rb', line 6 def self.win_mark?(mark) true if mark == '++++' end |