From: Dave Thomas Date: 2003-03-25T00:28:36+09:00 Subject: Re: Types (was Re: Ruby lecture slides (was Strong advantages over Python)) On Monday, Mar 24, 2003, at 07:21 US/Central, Jim Freeze wrote: >> class Fred >> def shout >> puts "wilma" >> end >> end >> >> f = Fred.new >> >> o = Object.new >> def o.shout >> puts "wilma" >> end > > Thanks for the fine example, but for those of us who are a little slow, > what exactly are the types of 'f' and 'o'? > Jim: I'm not sure their types have a name. In this particular concept, perhaps "objects_that_respond_to_#shout_by_printing_something"? I think this is like the old joke "Q: What's you dog's name? A: I don't know, but we call him Spot." It's the same with types in Ruby. Cheers Dave