Hi, ive been using Ruby for a few months at work. Mainly for fairly
simple scripting (type of thing you used to do in perl).
My first question is about initialize method, for overriding new (I
believe). If it is in fact overriding new why is it not called new?
it being called initialize is interesting because this is an American
spelling and I am a dyslexic person from the UK so you can imagine the
fun I am having;)
My second question is about TestUnit. I put a class inherited from
Test::Unit::TestCase at the end of my .rb file and it automatically
run the tests. This is cool but how did it know to run the class, I
did not tell it. I know ruby is cunning but is it reading my mind;).
This reminds me of the language called z we were talking about in the
80s. It only had one command, which was.
“Do what I want you to do and tell me when you are finished”.