Jesús Gabriel y Galán wrote:
> On Mon, Jul 5, 2010 at 9:31 PM, Abder-rahman Ali
> <abder.rahman.ali / gmail.com> wrote:
>> The first .rb is "wordlist.erb": http://pastie.org/1031629
>>
>> The second one, "idea.rb": http://pastie.org/1031631
>>
>> Provided that the Ruby version I'm using is: ruby 1.8.6
>>
>> So, any idea how I can workaround this issue?
> 
> Local variables are not visible outside of the file they are created.
> You will to make code_words a global variable ($code_words) or a
> constant (CODE_WORDS). I think for an example like this one those are
> the two simplest ways.
> 
> Jesus.

Thanks a lot. It worked :-)

Really nice solutions.
-- 
Posted via http://www.ruby-forum.com/.