From: Brian Candler Date: 2009-06-08T02:36:47+09:00 Subject: Re: code organization Li Chen wrote: > As I recall correctly module has two major funtions/purposes: > 1) namespace separation 2) mixin. So you mean in the second code it > works as a mixin or method sharing? Yes, mixin or method sharing (two terms to describe the same thing) Re-reading, there's another error I didn't fix in that example: it should say "include A" not "include module A" -- Posted via http://www.ruby-forum.com/.