How are the mixins implemented in Ruby?

are the code in the mixin module "injected" into the target class?

eg:
consumer --call--> Taget


or will the mixin related stuff live in some separate object and the 
target just redirects its calls to the mixin object?

eg:
consumer --call--> Target --redirect call--> mixin


So, will it be a true mixin , or just a redirection mixin?

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