Module: LittleWeasel::Modules::DictionaryFileLoader

Included in:
Services::DictionaryFileLoaderService
Defined in:
lib/LittleWeasel/modules/dictionary_file_loader.rb

Overview

Defines methods to load dictionaries. The dictionary file path is used as a key to avoid loading the same dictionary multiple times.

Defined Under Namespace

Classes: Loader

Instance Method Summary collapse

Instance Method Details

#load(dictionary_file_path) ⇒ Object



13
14
15
# File 'lib/LittleWeasel/modules/dictionary_file_loader.rb', line 13

def load(dictionary_file_path)
  Loader.new(dictionary_file_path, config).load
end