From: Dominik Bathon Date: 2005-09-11T21:44:07+09:00 Subject: Re: Getting "Require" to work, using the Poignant Guide to Ruby On Sun, 11 Sep 2005 04:26:34 +0200, Ian FalsePositives wrote: > In a (doomed?) attempt to actual understand ruby (with my almost 20 > years of coding experience), I'm working my way thur "Why's > (Poignant) Guide to Ruby", chapter 4 "Floating Little Leaves of Code" > and doing the "Making the Swap" section example. (on a Win XP box) > > and although the "require" loads the wordlist.rb file to load using the > require 'wordlist' method, I was getting "undefined local variable or > method `code_words' for main:Object (NameError)" WTF?!! This is an error in the guide, see http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/152758