From: Trans Date: 2007-07-29T02:28:51+09:00 Subject: Re: Quarks On Jul 28, 9:41 am, John Joyce wrote: > > Inheritance. > Inherits from Object But the (false) parameter is supposed to limit it to just the class, no ancestors. And it does mostly. But "mostly" is what doesn't make sense. If you use (true) instead you get: X.public_methods(true) => ["inspect", "private_class_method", "const_missing", "clone", "method", "public_methods", "public_instance_methods", "instance_variable_defined?", "method_defined?", "superclass", "equal?", "freeze", "included_modules", "const_get", "methods", "respond_to?", "module_eval", "class_variables", "dup", "protected_instance_methods", "instance_variables", "public_method_defined?", "__id__", "eql?", "object_id", "const_set", "id", "singleton_methods", "send", "class_eval", "taint", "frozen?", "instance_variable_get", "include?", "private_instance_methods", "__send__", "instance_of?", "private_method_defined?", "to_a", "name", "autoload", "type", "new", "<", "protected_methods", "instance_eval", "<=>", "display", "==", ">", "===", "instance_method", "instance_variable_set", "kind_of?", "extend", "protected_method_defined?", "const_defined?", ">=", "ancestors", "to_s", "<=", "public_class_method", "allocate", "hash", "class", "instance_methods", "tainted?", "=~", "private_methods", "class_variable_defined?", "nil?", "untaint", "constants", "is_a?", "autoload?"] X.private_methods(true) => ["select", "global_variables", "attr", "warn", "initialize", "readline", "singleton_method_added", "gsub", "exit!", "public", "method_missing", "method_added", "alias_method", "abort", "exec", "print", "remove_instance_variable", "chomp!", "load", "eval", "srand", "proc", "untrace_var", "Integer", "local_variables", "attr_reader", "readlines", "singleton_method_removed", "inherited", "raise", "chop", "protected", "getc", "define_method", "method_removed", "system", "at_exit", "require", "putc", "test", "set_trace_func", "lambda", "rand", "attr_writer", "Float", "remove_class_variable", "initialize_copy", "p", "singleton_method_undefined", "chomp", "fail", "syscall", "callcc", "sub!", "private", "method_undefined", "iterator?", "catch", "sleep", "puts", "`", "String", "attr_accessor", "sprintf", "remove_method", "class_variable_get", "included", "split", "caller", "irb_binding", "gsub!", "open", "block_given?", "throw", "remove_const", "gets", "trap", "sub", "loop", "include", "Array", "fork", "undef_method", "class_variable_set", "extended", "format", "exit", "printf", "chop!", "trace_var", "binding", "scan"] T.