The first is an instance method.  It can only be called using a variable of 
that class.  The second is a class method.  It can be called without a 
variable of that class.  For example:

Method 1 (variable needed):
a_var = A.new()
a_var.a

Method 2 (no variable needed):
	A.a



-----Original Message-----
From:	Jim Freeze [SMTP:jim / freeze.org]
Sent:	Thursday, May 03, 2001 10:35 AM
To:	ruby-talk ML
Subject:	[ruby-talk:14593] Module method definition question

What is the difference (if any) between the following
two method definitions:

method A
  def a
    1
  end
end

method A
  def A.a
    1
  end
end

Thanks


=========================================================
Jim Freeze
jim / freeze.org
---------------------------------------------------------
No comment at this time.
http://www.freeze.org
=========================================================