From: Jones Lee Date: 2011-09-30T11:48:41+09:00 Subject: Ruby mixin: extend or include? I have following code: module CarHelper def call_helpline puts "Calling helpline..." end end class Car extend CarHelper end class Truck class << self include CarHelper end end # Test code Car.call_helpline Truck.call_helpline In fact both 2 lines of test codes works. So is there any difference between the way I use 'extend' and 'include' (inside a singleton class of self)? -- Posted via http://www.ruby-forum.com/.