Sha256: 93865165039a6408bb71519b1520ea5f9e94ebb125c80e00de1198239378f061
Contents?: true
Size: 1015 Bytes
Versions: 1
Compression:
Stored size: 1015 Bytes
Contents
# frozen_string_literal: true # module that provides all the constants module PhNoToWord module Constants ERRORS = { missing_ph: 'Please provide a phone number', ph_length: 'Please provide 10 digit phone number', malformed_ph_no: 'Cannot contain 0 or 1 in the phone number' }.freeze NO_CHAR_MAP = { '2': %w[a b c], '3': %w[d e f], '4': %w[g h i], '5': %w[j k l], '6': %w[m n o], '7': %w[p q r s], '8': %w[t u v], '9': %w[w x y z] }.freeze FORBIDDEN_NOS = %w[0 1].freeze MAX_SPLIT_DEPTH = 4 MIN_WD_LENGTH = MAXIMUM_WDS = 3 FILE_EXT = '.txt' THREE_CHAR_FILE = 'three_char_wrds' + FILE_EXT PH_LENGTH = 10 MAX_FST_WD_LEN = 7 DEFAULT_WORD_FILES_PATH = '/word_files' DEFAULT_WORD_FILE_DIR = DEFAULT_WORD_FILES_PATH + '/level_1' DEFAULT_WD_FILE_DIR_LVL_2 = DEFAULT_WORD_FILES_PATH + '/level_2' DEFAULT_DICTIONARY_FILE_PATH = DEFAULT_WORD_FILES_PATH + '/dictionary_sample' + FILE_EXT end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ph_no_to_word-1.0.0 | lib/ph_no_to_word/constants.rb |