From: Brian Candler Date: 2003-03-11T08:03:18+09:00 Subject: Re: How to examine method signature ? (via Ruby introspection ?) On Tue, Mar 11, 2003 at 07:48:29AM +0900, pj wrote: > TkImage > > TkImage.public_instance_methods > > Here I find "height". But now I am not clever enough for the next step > (and I bet there is some simple next step, to see info about this > method/property) > > TkImage.instance_method("height") > > # > > I wonder if someone could give me a suggestion or pointer about how I > should find out more info about the "height" property or method of the > class "TkImage" (preferably using Ruby, if that is reasonably easy). To find the number of arguments to a method: TkImage.instance_method("height").arity Negative values are returned if the arguments are variable (-1 = 0 or more, -2 = 1 or more etc). Regards, Brian.