From: Paul Date: 2007-10-26T18:35:14+09:00 Subject: Re: find all member in a class On Oct 26, 5:16 pm, Pokkai Dokkai wrote: > how to find all members list(member functions & member variables for all > access specifiers like public, private and protected) ? > -- > Posted viahttp://www.ruby-forum.com/. irb(main):002:0> puts String.methods.sort < <= <=> == === =~ > >= __id__ __send__ allocate ancestors autoload autoload? class class_eval class_variable_defined? class_variables clone const_defined? const_get const_missing const_set constants display dup eql? equal? extend freeze frozen? gem hash id include? included_modules inspect instance_eval instance_method instance_methods instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? kind_of? method method_defined? methods module_eval name new nil? object_id private_class_method private_instance_methods private_method_defined? private_methods protected_instance_methods protected_method_defined? protected_methods public_class_method public_instance_methods public_method_defined? public_methods require require_gem respond_to? send singleton_methods superclass taguri taguri= taint tainted? to_a to_s to_yaml to_yaml_properties to_yaml_style type untaint yaml_as yaml_new yaml_tag_class_name yaml_tag_read_class yaml_tag_subclasses? => nil