Possible Duplicate:
What is the difference between include and extend in Ruby?
Given:
module my_module
  def foo
    ...
  end
end
Question 1
What is the difference between:
class A
  include my_module
end
and
class A
  extend my_module
end
Question 2
Will foo be considered an instance method or a class method ? 
In other words, is this equivalent to:
class A
  def foo
    ...
  end
end
or to:
class A
  def self.foo
    ...
  end
end
?
 
     
     
    