class cannot find module

Discussion in 'Ruby' started by Catsquotl, Mar 6, 2011.

  1. Catsquotl

    Catsquotl Guest

    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
    Catsquotl, Mar 6, 2011
    #1
    1. Advertising

  2. Catsquotl

    Josh Cheek Guest

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

    On Sun, Mar 6, 2011 at 3:55 PM, Catsquotl <> wrote:

    > 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
    Josh Cheek, Mar 6, 2011
    #2
    1. Advertising

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

    On 3/7/11, Josh Cheek <> wrote:
    > On Sun, Mar 6, 2011 at 3:55 PM, Catsquotl <> wrote:
    >
    >> 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
    >


    --
    Sent from my mobile device
    Catsquotl with hat, Mar 7, 2011
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    998
    kaeli
    May 24, 2005
  2. E11
    Replies:
    1
    Views:
    4,708
    Thomas Weidenfeller
    Oct 12, 2005
  3. Erlend Fuglum
    Replies:
    0
    Views:
    401
    Erlend Fuglum
    Jun 6, 2004
  4. Wybo Dekker
    Replies:
    1
    Views:
    337
    Yukihiro Matsumoto
    Nov 15, 2005
  5. vdvorkin
    Replies:
    0
    Views:
    388
    vdvorkin
    Feb 10, 2011
Loading...

Share This Page