Sha256: 9f043afab4da39f3b9021940d806fffd9296d516a914944f28b6ee641ee5a9a7

Contents?: true

Size: 258 Bytes

Versions: 3

Compression:

Stored size: 258 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) ? true : false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
codebreakergem-0.1.12 lib/modules/check_module.rb
codebreakergem-0.1.11 lib/modules/check_module.rb
codebreakergem-0.1.10 lib/modules/check_module.rb