From: "Brian Schröder" Date: 2004-11-23T06:01:56+09:00 Subject: Re: [Documentation Bug] Method Missing Another Thing I noticed. (I checked against the documentation at ruby-doc org. I hope that is the newest version.) --------------------------------------------------------- Object#methods obj.methods => array ------------------------------------------------------------------------ Returns a list of the names of methods publicly accessible in obj. This will include all the methods accessible in obj's ancestors. class Klass def kMethod() end end k = Klass.new k.methods[0..9] #=> ["kMethod", "freeze", "nil?", "is_a?", "class", "instance_variable_set", "methods", "extend", "send", "instance_eval"] k.methods.length #=> 42 $ ruby -v ruby 1.8.2 (2004-11-03) [i386-linux] $ irb --prompt-mode xmp class Klass def kMethod() end end ==>nil k = Klass.new ==># k.methods[0..9] ==>["clone", "protected_methods", "kMethod", "freeze", "instance_variable_set", "is_a?", "type", "methods", "method", "=~"] k.methods.length ==>41 And additionally, here is again the snake_case against CamelCase issue. Regards, Brian -- Brian Schr�der http://ruby.brian-schroeder.de/