From: Wilson Bilkovich Date: 2007-01-10T02:22:43+09:00 Subject: Re: inheritance concept in ruby On 1/9/07, Kumar Tnj wrote: > Hi, > > Is ruby supports multiple inheritence. > I am the beginner of ruby. > simple code for ruby multiple inheritence. > To expand on what hemant said.. try running this code. class Useless def six 6 end end module AlsoUseless def seven 7 end end class Thing < Useless include AlsoUseless def five 5 end end thing = Thing.new puts thing.five puts thing.six puts thing.seven puts Thing.ancestors.inspect # Useless and AlsoUseless are shown.