Class cannot find module

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)

On Sun, Mar 6, 2011 at 3:55 PM, Catsquotl [email protected] wrote:

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs