module EnglishDictionary
All code in the gem is namespaced under this module.
Constants
- VERSION
The current version of
EnglishDictionary
.
Public Class Methods
is_word(word)
click to toggle source
# File lib/english_dictionary.rb, line 16 def self.is_word(word) if @@words[word] == true puts "true" else puts "false" end end
load_words()
click to toggle source
# File lib/english_dictionary.rb, line 8 def self.load_words() File.open("words.txt") do |file| file.each do |line| @@words[line.strip] = true end end end