On 1/9/07, Kumar Tnj <senvenit2003 / india.com> 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.