module Validator
Public Class Methods
code_valid?(input)
click to toggle source
# File lib/codebreaker_artem/validator.rb, line 2 def self.code_valid?(input) true if input =~ /^[1-6]{4}$/ end
win_mark?(mark)
click to toggle source
# File lib/codebreaker_artem/validator.rb, line 6 def self.win_mark?(mark) true if mark == '++++' end