Thanks.

class.instance_methods
module.instance_methods make it.


Thanks.
Wesley Chen.


On Thu, Mar 12, 2009 at 5:32 PM, wesley chen <cjq....@gmail.com> wrote:

> Hi, Zeljko,
> Sorry, I have not demonstrated clearly enough.
>
> Suppose I have written a module or a class, in the module or class, I have
> written many methods. I would like to print all my methods out.
> How can I make it?
>
>
> Any suggestion would be appreciated.
> Thanks.
> Wesley Chen.
>
>
> On Thu, Mar 12, 2009 at 5:24 PM, Željko Filipin
> <zeljko.fili...@wa-research.ch> wrote:
>
>> On Thu, Mar 12, 2009 at 10:18, wesley chen <cjq....@gmail.com> wrote:
>> > How to print the methods in the class or module out?
>>
>> Wesley,
>>
>> you need this?
>>
>> >> a = ""
>> => ""
>> >> a.methods
>> => ["%", "select", "[]=", "inspect", "<<", "each_byte", "clone", "method",
>> "gsub", "casecmp", "public_methods", "to_str", "partition", "tr_s",
>> ...
>> "capitalize!", "scan", "[]"]
>>
>>
>>
>> Željko
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to