Hi,

Yes, but you used include.

I want it to be auto-included on require.

Right now I have code in where I do precisely that.

  require 'foo'
  include Foo

My end goal is to do something like this instead:

  require 'foo'
  include Foo # ok this is the default, and now:

  require 'foo/autoinclude' # This here should be like the above

Is this even possible? I know one could probably patch Kernel#require 
but then I would have to carry my modifications to other people too and 
that is not possible.

I would need some way to do this all based on required.

Is this doable at all?

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