P
Piet Versteegen
I am using require in two different ways and they both don't work.
In case #1 I use it to read a file with a code snippet. The file is
located in the same directory. The code snipped defines an array
called `code_words'. When trying to print it it says"
"undefined local variable or method `code_words' for main:Object
(NameError)"
In the second case I have installed rubycoca and I'm trying to run the
sample problem. I has a "require osx/cocoa" statement. The error
message I get is "in `require': no such file to load -- osx/
cocoa (LoadError)"
Searching the Internet I found that other people have the same second
problem, but no answer was found on how to solve it.
Can anyone help?
Thanks ahead of time.
In case #1 I use it to read a file with a code snippet. The file is
located in the same directory. The code snipped defines an array
called `code_words'. When trying to print it it says"
"undefined local variable or method `code_words' for main:Object
(NameError)"
In the second case I have installed rubycoca and I'm trying to run the
sample problem. I has a "require osx/cocoa" statement. The error
message I get is "in `require': no such file to load -- osx/
cocoa (LoadError)"
Searching the Internet I found that other people have the same second
problem, but no answer was found on how to solve it.
Can anyone help?
Thanks ahead of time.