# frozen_string_literal: true module CodebrackerLogicGame class SecretCode extend Validation include Valid attr_accessor :value validate :value, presence: true, type: Integer, length: [4], values: (1..6) def initialize(value) @value = value validate! end end end