From: ts Date: 2001-12-09T22:48:22+09:00 Subject: [ruby-talk:28027] Re: Module ext not accessable by class function? >>>>> "J" == Jim Freeze writes: J> module A J> Const = 5 # add this puts self # here self is the class J> def self.a J> puts Const J> end J> Is there any difference between self.a and A.b? In this case self.a is the same than A.a Imagine that you change the name of the class this give module X Const = 5 def self.a # it's still work puts Const end def A.b # oups you've forgotten to rename it here puts Const end end Guy Decoux