class cannot find module

C

Catsquotl

Hi,

I have a class and a module I want to mix in..
I tried a few thing, but the following error keeps appearing
------------------------------------
C:/Users/Eelco ten Have/shiatsuRuby/acupunt.rb:2:in `<class:Acupunt>':
uninitial
ized constant Acupunt::InstanceEditor (NameError)
---------------------------------------

I guess somehow include does not look in the working directory..
I am using Geany as an editor/IDE

any ideas how to fix this?
Eelco
 
J

Josh Cheek

[Note: parts of this message were removed to make it a legal post.]

Hi,

I have a class and a module I want to mix in..
I tried a few thing, but the following error keeps appearing
------------------------------------
C:/Users/Eelco ten Have/shiatsuRuby/acupunt.rb:2:in `<class:Acupunt>':
uninitial
ized constant Acupunt::InstanceEditor (NameError)
---------------------------------------

I guess somehow include does not look in the working directory..
I am using Geany as an editor/IDE

any ideas how to fix this?
Eelco
Include doesn't work with files. Where is your file that you have defined
Acupunct::InstanceEditor? You should require that file in acupunt.rb
 
C

Catsquotl with hat

Thank you, I must have missed the require 'file' part in the text book.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top