Sha256: 49b33f34099716a9a7e5094c5efa1e91637f9a61de3f08bb96b5bbc259747ddc

Contents?: true

Size: 232 Bytes

Versions: 7

Compression:

Stored size: 232 Bytes

Contents

# frozen_string_literal: true

module Codebreakergem
  module Checker
    ALLOWED_LENGTH = (3..21).freeze

    def validate_string_length(incoming_string)
      ALLOWED_LENGTH.include?(incoming_string.to_s.length)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
codebreakergem-0.1.19 lib/modules/check_module.rb
codebreakergem-0.1.18 lib/modules/check_module.rb
codebreakergem-0.1.17 lib/modules/check_module.rb
codebreakergem-0.1.16 lib/modules/check_module.rb
codebreakergem-0.1.15 lib/modules/check_module.rb
codebreakergem-0.1.14 lib/modules/check_module.rb
codebreakergem-0.1.13 lib/modules/check_module.rb