Not entirely sure I understand this (it's a newbie-ruby question).

class Test
  def foo
  end

  def Test.foo
  end

  def self.foo
  end
end


The first definitition of foo is an instance method.  The second a
class method.  Perhaps my terminology is wrong but I understand what I
mean.

It's the third one I'm not sure of.  The "self.foo".

What does this do, how and where would I use it?


-- 

All the best
Glenn
Aylesbury, UK