Guy:

 could you explain the 'def tt(Enumerable a)' and  'def tt(Kernel a)'  i take it this is overloading tt? i don't ever recall seeing this in a maunal and i own them all, i think. perhaps you can point me to a chapter or web page that has it? or elaborate if it is not well documented.

thanks,
-t0


>  Don't forget that I've written and *used* this
> 
> svg% cat b.rb
> #!./ruby
> class A
>    def tt(Enumerable a)
>       p "I respond to #each : #{a.inspect}"
>    end
> 
>    def tt(Kernel a)
>       p "I don't know #each : #{a.inspect}"
>    end
> end
> 
> a = A.new
> a.tt([1, 2])
> a.tt("string")
> a.tt(A.new)
> 
> svg% 
> 
> svg% b.rb
> "I respond to #each : [1, 2]"
> "I respond to #each : \"string\""
> "I don't know #each : #<A:0x4009c360>"
> svg% 
>