Brian Candler wrote: > So in summary: they achieve two completely different ends (namespace > separation, and method sharing, respectively) Hi Brian, Thank you so much. 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? Li -- Posted via http://www.ruby-forum.com/.