Class: Core
Overview
Core provides Morse code generation functionality Inherits Dsl
Constant Summary
Constants included from CW::FileDetails
CW::FileDetails::ABBREVIATIONS, CW::FileDetails::AUDIO_DIR, CW::FileDetails::BOOKMARK_FILE, CW::FileDetails::CALLS, CW::FileDetails::CALLS_FILENAME, CW::FileDetails::CODE, CW::FileDetails::CODE_FILENAME, CW::FileDetails::CONFIG_FILENAME, CW::FileDetails::CONFIG_PATH, CW::FileDetails::DASH_FILENAME, CW::FileDetails::DATA, CW::FileDetails::DEF_AUDIO_FILENAME, CW::FileDetails::DICT_DIR, CW::FileDetails::DICT_FILENAME, CW::FileDetails::DOT_AUDIO_DIR, CW::FileDetails::DOT_CW_DIR, CW::FileDetails::DOT_FILENAME, CW::FileDetails::E_SPACE_FILENAME, CW::FileDetails::HERE, CW::FileDetails::Q_CODES, CW::FileDetails::ROOT, CW::FileDetails::SPACE_FILENAME, CW::FileDetails::TEXT, CW::FileDetails::USER_CONFIG_PATH, CW::FileDetails::WORK_DIR
Constants included from CW::Cfg
Instance Method Summary collapse
-
#initialize(&block) ⇒ Core
constructor
Initialize Core class.
Methods inherited from CW::Dsl
#alpha, #alphabet, #beginning_with, #callsign, #containing, #convert_book, #cw_element_match, #dash_letters, #dot_letters, #double_words, #ending_with, #including, #letter_range, #letters_numbers, #list, #load_abbreviations, #load_alphabet, #load_codes, #load_common_words, #load_consonants, #load_dashes, #load_dots, #load_most_common_words, #load_numbers, #load_text, #load_vowels, #load_words, #no_longer_than, #no_noise, #no_run, #no_shorter_than, #noise, #numbers, #numbers_spoken, #print_letters, #random_letters, #random_letters_numbers, #random_numbers, #read, #read_book, #read_rss, #repeat, #repeat_word, #reveal, #reverse, #run, #run_default, #sending_practice, #shuffle, #test_letters, #test_words, #to_s, #tx, #use_ebook2cw, #use_ruby_tone, #vowels, #word_count, #word_size, #word_spacing, #words, #words=
Methods included from CW::FileDetails
#audio_dir, #audio_filename, #dash_path, #default_audio_dir, #dot_audio_dir, #dot_cw_dir, #dot_path, #e_space_path, #init_filenames, #process_audio_dir, #process_dot_audio, #process_dot_cw, #progress_file, #space_path, #user_audio_dir
Methods included from CW::Cfg
config, get_param, reset, reset_if_nil, reset_param, user_config
Constructor Details
#initialize(&block) ⇒ Core
Initialize Core class. Eval block if passed in.
63 64 65 66 67 |
# File 'lib/cw.rb', line 63 def initialize(&block) super instance_eval(&block) if block run if block end |