From: Chris Bailey Date: 2008-08-28T09:15:04+09:00 Subject: Re: Having a difficult time with Case statements. Mark T wrote: > Add the method you created to the end of the program 'definition' you > have. > ie: You have defined the program method startUp without invoking it. > > tesThis.rb:12:in `startUp': undefined method `blue' for > "Nephlen":String (NoMethodError) > from tesThis.rb:165 > > paradisaeidae. Thank you for the feedback but I should have mentioned that it is one of several source files and the startUp method is called from a main function elsewhere. The source also makes reference to a few things here and there that are not included in that particular file. I thought it would be a bit much to just dump all the source code up here so I opted for the part causing me the biggest headache. When I said it "didn't work at all", what I really meant was that it doesn't work as I intended it to. I will post some sample output from me running the game using that menu/startup system. bsud.rb combat.rb items.rb magic.rb maps person.rb saved shop.rb startup.rb world.rb chris@Dell-D510:~/bsud$ ruby bsud.rb Nephlen What would you like to do? 1 - Load a Saved Game. 2 - Create a New Character. 3 - Exit from Nephlen. 4 - View the Readme file. 2 1 3 4 2 1 I go through and try any of the inputs that "should", in my opinion, be recognized by the input tracking case statements but nothing happens at all. I am completely dumbfounded =) -- Posted via http://www.ruby-forum.com/.