From: "David A. Black" Date: 2008-12-15T04:20:45+09:00 Subject: Re: Newbie - error while trying subclass Hi -- On Mon, 15 Dec 2008, Rubystudent wrote: > I am trying to subclass in my code (see below). But I am getting the > following error while running the code. > > song.rb:12: class/module name must be CONSTANT > class karaokeSong < Song > ^ karaokeSong isn't a constant. Try KaraokeSong (uppercase 'K'). David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2)