Class: ObjC::Class
ObjC::Class wraps Objective-C classes for manipulation from Ruby.
Using methods of this class, Objective-C class methods and instance methods can be accessed from Ruby. New Objective-C classes can be added that subclass existing Objective-C classes; this allows Ruby classes derived from Objective-C classes to be made visible to Objective-C callers. New Objective-C method handlers can be added to allow Objective-C code to call methods written in Ruby.
Information about Objective-C classes obtained from ObjC::Class instances is used to automatically build a tree of Ruby classes descending from ObjC::Object. Instances of these classes wrap individual Objective-C objects.
Public Class methods
each ()
Iterate over all classes currently known to the Objective-C runtime. Classes are returned as ObjC::Class objects.
to_a ()
Get an array containing all classes currently known to the Objective-C runtime. Classes are returned as ObjC::Class objects.
Public Instance methods
cmethods ()
Get an array containing the class methods of the corresponding Objective-C class. Returns an array of objects of type ObjC::Method.
imethods ()
Get an array containing the instance methods of the corresponding Objective-C class. Returns an array of objects of type ObjC::Method.
ivars ()
Get an array containing the instance variables associated with the class. Returns an array of objects of type ObjC::Variable.
protocols ()
Get an array containing the names of all protocols supported by the corresponding Objective-C class.