From: Rong Date: 2009-09-08T15:45:28+09:00 Subject: Re: Mixins Nevermind. I found it. On Sep 7, 11:40 pm, Rong wrote: > I have the following code separated in 2 files. > > module UsefulFeatures > >   def class_name >     self.class.to_s >     end > end > > ------------------------------------- > > require UsefulFeatures > > class Person >   include UsefulFeatures > end > > x = Person.new > puts x.class_name > > Every time I try to run this I get the following error: > Test2.rb:1:in `
': uninitialized constant UsefulFeatures > (NameError) > > What am I doing wrong?