From: Brian Candler Date: 2012-01-29T19:22:26+09:00 Subject: Re: A little assistance please :) jake kaiden wrote in post #1042402: > also, in line 40, you define a method called `Steveloaded` - classes, > modules, and constants start with capital letters, not methods - this > will throw an error for sure. Actually, methods *can* start with a capital letter, and although it's not all that common, there are plenty of examples in the standard library. >> Integer("123") => 123 >> Integer "123" => 123 i.e. the usual case is to have a method with the same name as a class, and use that method as a kind of constructor. Note, however, that you have to call it with arguments, or as Foo() or self.Foo. A bare Foo by itself is treated as a constant. >> Foo = 42 => 42 >> def Foo; 99; end => nil >> Foo => 42 >> Foo() => 99 >> self.Foo => 99 Regards, Brian. -- Posted via http://www.ruby-forum.com/.