lib/LittleWeasel/services/dictionary_creator_service.rb in LittleWeasel-4.0.0 vs lib/LittleWeasel/services/dictionary_creator_service.rb in LittleWeasel-5.0.0
- old
+ new
@@ -75,20 +75,20 @@
#
# @param file [String] a file path pointing to the dictionary file to load and use.
#
# @return returns a reference to self.
def add_dictionary_file_source(file:)
- dictionary_cache_service.add_dictionary_source(source: file)
+ dictionary_cache_service.add_dictionary_source(dictionary_source: file)
end
# Adds a dictionary memory source. A "memory source" indicates that the
# dictionary words associated with this dictionary were created
# dynamically and will be located in memory, as opposed to loaded from
# a file on disk.
#
# @return returns a reference to self.
def add_dictionary_memory_source
- dictionary_cache_service.add_dictionary_source(source: memory_source)
+ dictionary_cache_service.add_dictionary_source(dictionary_source: memory_source)
end
end
end
end