1.9.2-p290 :001 > module A
1.9.2-p290 :002?> def foo
1.9.2-p290 :003?> puts "foo-A"
1.9.2-p290 :004?> end
1.9.2-p290 :005?> end
=> nil
1.9.2-p290 :006 > module B
1.9.2-p290 :007?> def foo
1.9.2-p290 :008?> puts "foo-B"
1.9.2-p290 :009?> end
1.9.2-p290 :010?> end
=> nil
1.9.2-p290 :011 > class C
1.9.2-p290 :012?> include A, B
1.9.2-p290 :013?> end
=> C
1.9.2-p290 :014 > C.new.foo
foo-A
=> nil
1.9.2-p290 :015 > class D
1.9.2-p290 :016?> include A
1.9.2-p290 :017?> include B
1.9.2-p290 :018?> end
=> D
1.9.2-p290 :019 > D.new.foo
foo-B
=> nil