From: Pito Salas Date: 2009-06-03T22:16:56+09:00 Subject: Module methods I am trying to do this: ==== File: good.rb ==== module Good def init_module @var = "good" end def life_is_good puts "life is #{@var}" end [... more methods ...] end include X init_module ======== and in a different file ======== include Good life_is_good - - - - - - - - That works but messes up when I try to use ruby-debug with it. So I changed it to try to call init_module in a different way: instead of include X, init_module, I tried both of these, neither of which works: X::init_module X.init_module Each of those calls lead to an 'undefined method 'init_module' for X:Module. I am getting myself confused with Module methods etc etc. Any help would be gratefully accepted!! Pito -- Posted via http://www.ruby-forum.com/.