lib/codebreaker_kirill/validations.rb in codebreaker_kirill-1.3.5 vs lib/codebreaker_kirill/validations.rb in codebreaker_kirill-1.3.6
- old
+ new
@@ -1,11 +1,9 @@
# frozen_string_literal: true
-require_relative 'autoload'
-
module CodebreakerKirill
class Validations
- include CodebreakerKirill::Settings
+ include 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