On Fri, Feb 14, 2003 at 05:06:03AM +0900, Daniel Bretoi wrote:
> We seem to get different results. 
> 
> [~]$ ruby -version
> ruby 1.6.8 (2002-12-24) [i386-linux]
> 
> irb(main):001:0> def blah
> irb(main):002:1> end
> => nil
> irb(main):003:0> p respond_to? "blah"
> true
> => nil
> 
> 
> After doing a p private_methods, every single method in my 
> mod_ruby scripts show up as private, even though non have been declared
> as such. Is this a safety feature of mod_ruby?

When you define "functions" as in 
  
 def bla
 end

you're in fact defining private instance methods of Object.

See [58056]

-- 
 _           _                             
| |__   __ _| |_ ___ _ __ ___   __ _ _ __  
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
	Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

<james> abuse me.  I'm so lame I sent a bug report to debian-devel-changes
	-- Seen on #Debian