From: August0866 Date: 2008-03-04T23:50:01+09:00 Subject: Re: Class and inheritance OK, 2 dumb questions What is the difference between a class and a module and What is wrong here, the logic or the syntax Npc, def => job)> def job if @power.to_f > 12 && @smarts.to_f > 14 && @speed.to_f > 14 @job = 'Adventurer' elsif @power.to_f > 14 and (@smarts.to_f <14 or @speed.to_f < 14) @job = 'laborer' elsif @power.to_f < 14 and (@smarts.to_f > 14 and @speed.to_f > 14) @job = 'coureror' elsif @power.to_f < 14 and (@smarts.to_f > 14 and @speed.to_f < 14) @job='teacher' else @job = 'commoner' end end the result is sometimes joe is an adventurer otherwise nothing is output