[MacRuby-devel] Objcetive C methods not "visible" from MacRuby
vincent.isambart at gmail.com
Sun Nov 29 00:29:17 PST 2009
> I'm stuck here. How can I have Objective C methods "visible" from MacRuby?
In MacRuby there's a hidden additional parameter to methods or instance_methods to include Objective-C methods in the lists they return, for instance:
> String.instance_methods(true, true)
The first parameter is already in MRI, true by default. If true will return all the methods, if false only the methods declared on the object itself, not its ancestors.
The second parameter is specific to MacRuby, false by default. If true it will return the methods created in Objective-C, if false it won't.
More information about the MacRuby-devel