From: "Iñaki Baz Castillo" Date: 2012-08-05T03:07:17+09:00 Subject: Re: Why does it fail? def Module1::Module2.hello 2012/8/4 William Herry : > I know one way to define module method > > module Module1::Module2 > def self.hello > puts 'HELLO' > end > end Sure, but what I ask is why this works: def Module1.hello ; end end this fails: def Module1::Module2.hello ; end -- Iñaki Baz Castillo