module Cryptozoologist::Dictionaries
Public Instance Methods
addresses()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 50 def addresses Addresses.list end
animals()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 5 def animals create_list(:animals) end
cities()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 58 def cities create_list(:cities) end
clothing()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 9 def clothing Clothing.list end
colors()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 13 def colors create_list(:colors) end
filler()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 42 def filler Filler.list end
first_name()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 62 def first_name People::FirstName.list end
last_name()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 66 def last_name People::LastName.list end
library()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 21 def library { animals: { common: Animals::Common, mythical: Animals::Mythical }, colors: { paint: Colors::Paint, web: Colors::WebSafe }, cities: { words: Cities::Words, terminologies: Cities::Terminologies }, people: { first_name: People::FirstName, last_name: People::LastName, } } end
punctuation()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 46 def punctuation Punctuation.list end
quantity()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 17 def quantity Quantity.list end
states()
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 54 def states States.list end
Private Instance Methods
create_list(key)
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 70 def create_list(key) list = [] filter_library(key).each { |word_bank| list << word_bank.list } list.flatten end
filter_library(filter_key)
click to toggle source
# File lib/cryptozoologist/dictionaries.rb, line 76 def filter_library(filter_key) dictionaries = library[filter_key].reject do |key, _value| Cryptozoologist.configuration.exclude.include?(key) end dictionaries.values end