Dear Rubyists,

I fail to understand why the following code doesn't output anything.

module Foobar
  def inherited(klass)
    p klass
  end
end

class Class
  include Foobar
end

class A
end

My intuition says it should work since defining Class#inherited
directly works. I believe I understand the whole "instance methods of
Class become class methods of Class instances" business, but I must be
missing something obvious.

Any ideas?

-- 
Christoffer Sawicki