From: Dirk Meijer Date: 2005-09-11T22:00:54+09:00 Subject: Re: Getting "Require" to work, using the Poignant Guide to Ruby ------=_Part_1847_20090841.1126443651654 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 2005/9/11, Dominik Bathon :=20 >=20 > On Sun, 11 Sep 2005 04:26:34 +0200, Ian FalsePositives > wrote: >=20 > > 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?!! >=20 > This is an error in the guide, see >=20 > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/152758 it's just an example, the file you're trying to load doesn't actually=20 exist. ------=_Part_1847_20090841.1126443651654--