Hi Robert, To the best of my knowledge, in the methods I am not making use any context/state. Thanks a lot for your reply. (Based on my further search, it seems we can use "module_function"; but this falls into the "dual use".) Regards, Bill -- Posted via http://www.ruby-forum.com/.