lib/codebreaker_kirill/validations.rb in codebreaker_kirill-1.3.4 vs lib/codebreaker_kirill/validations.rb in codebreaker_kirill-1.3.5

- old
+ new

@@ -2,10 +2,10 @@ require_relative 'autoload' module CodebreakerKirill class Validations - include Settings + include CodebreakerKirill::Settings def self.validate_name(name) raise "Name shouldn't be empty" if name.empty? raise 'Name should be string' if name.class != String raise 'Name should be at least 3 characters long' if name.length < Settings::NAME_MIN_LENGTH