Hi,

Ruby 1.8.7
OSX 10.6.x

It seems that when including multiple modules with identical method
names there are different results when using multiple includes versus
a single include with multiple arguments. In the the former case we
get a "last method definition wins" but in the latter it's "first
method definition wins".

Is this expected behavior? If so, where is it documented?

module X
  def hello
    puts "hello"
  end
end

module Y
  def hello
    puts "greetings"
  end
end

class Foo
  include X
  include Y
end

class Bar
  include X, Y
end

Foo.new.hello # => greetings
Bar.new.hello # => hello

Regards,

Dan