Index

RBReflectionUtility.swift

Classes


RBReflectionUtility

Reflection utility methods.

Functions

Finds the subclasses of the given type.
@param type : The type to find subclasses for.
@returns A set of the subclasses that were found.
public class func subclassesOf(_ type: AnyClass) -> (AnyClass)?

Finds all of the classes that match the given block.
@param classMatchBlock : The block to determine whether a given type is acceptable.
@returns A set of the matching classes.
public class func classesThatMatch(_ classMatchBlock: @escaping (_ typeClass: AnyClass) -> Bool) -> (AnyClass)?