Sha256: 2f91ec8f684fc93b386d15f76e3c261ffd8bb47e67c15d6b672ed9a0b3a0d512
Contents?: true
Size: 229 Bytes
Versions: 1
Compression:
Stored size: 229 Bytes
Contents
module Validation def name_valid?(name) name.length.between? 3, 20 end def guess_valid?(guess) /^[1-6]{4}$/.match? guess end def difficult_valid?(level) !Constants::DIFFICULTS[level.to_sym].nil? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codebreaker_dmitriev-0.2.0 | lib/codebreaker/validation.rb |