> File script.rb contains:
> require 'wordlist'


> It prints Wordlist got required, then prompts for an evil idea, and
> after I hit enter, gives the following error:
> script.rb:5: undefined local variable or method `code_words' for
> main:Object (NameError)
> 
> What am I doing wrong?

The scripts operate each in its own "scope" so setting a variable in one 
doesn't set it in the other.  Kind of confusing at first, but at least 
you don't have to worry about leaked variables from one script to the 
next.
To avoid it save it to a global like
$code_words
or put it all in one .rb file.
GL!
-=r
-- 
Posted via http://www.ruby-forum.com/.