From: ptkwt@... (Phil Tomson) Date: 2004-03-19T09:39:32+09:00 Subject: Re: calling outer-scope method of same name In article <005301c40d41$08e3aaf0$6442a8c0@musicbox>, Bill Kelly wrote: >Hi David, > >From: "David A. Black" >[...] >> Kernel.spleen("foo") Shouldn't it be: Object.spleen("foo") > > >$ cat test.rb > >def spleen(a) > puts "spleen: #{a}" >end > >class Blah > def spleen > Kernel.spleen("foo") Object.spleen("foo") > end >end > >Blah.new.spleen > Then it should work. Phil