Hi,

could someone check and comment if this is something that i don't
understand well or a ruby "somehow" problem? please

Here's the code:

module A
  def a; :a; end
end

module B
  include A
  def b; :b; end
end

module C
  def c; :c; end
end

class D
  include B
end

D.new.a #=> :a     ## Ok for me
D.new.b #=> :b     ## Ok for me

module B
  include C
end

D.new.c #=> NoMethodError: undefined method `c' for #<D:0xb7cb985c>  ##
This is not ok for me.

Thanks,
Vasco Andrade e Silva

-- 
Posted via http://www.ruby-forum.com/.