You can pass two arguments to #methods, which are to include methods from
ancestors and to include Objective-C methods, So you probably want:
vector.methods(false, true)
On 21 nov 2010, at 18:55, András Zalavári wrote:
> Hi there!
>
> I'm having problems of getting a list of methods from Class
] Objective-c Class -> methods
An: "MacRuby development discussions."
Datum: Sonntag, 21. November, 2010 18:55 Uhr
Hi there!
I'm having problems of getting a list of methods from Classes, declared in
Objective-C.I have a class compiled, and fully working, look like this:
// vecto..
Hi there!
I'm having problems of getting a list of methods from Classes, declared in
Objective-C.
I have a class compiled, and fully working, look like this:
// Vector.h
@interface Vector : NSObject {
float x,y,z;
}
@property float x,y,z;
@property float length;
@end
// Vector.m
@imple