-
-
Save latentflip/478531 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Small function to generate a comma delimited dictionary on a unix system | |
def gen_dictionary | |
f = open("| cat /usr/share/dict/words") | |
g = Array.new | |
while (foo = f.gets) | |
g << foo.strip | |
end | |
puts g.join(', ') | |
end | |
gen_dictionary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment