"Chris Pine" <nemo / hellotree.com> wrote: > My only quibble is when you say that in Ruby, types and classes are > the same thing. > > I don't know any Python, so maybe you are trying to say that the role > of"types" in Python is taken care of by classes in Ruby... i.e. there > is another kind of thing in Python called a "type", but Ruby unifies > that concept with the "class" concept. Maybe that's what you mean... > I don't know. Yes, I was referring to the fact that Python has both 'types' and 'classes'. > So I have implicity "defined" a duck type without ever making a Duck > class. In Java I would need a class or an interface or something, but > in Ruby that's all behond the scenes. Er... in this example you have an object of class String with an extra method. IMO, this is still of class String. I don't address singleton methods in the lecture. Should I? I've never used them and I very rarely see others using them. Are they that important to be included in a quick intro of Ruby? -- Greg McIntyre greg / puyo.cjb.net http://puyo.cjb.net