def __init__(self, callable_obj):
        """Store callable object and create RectsManager.

        The callable obj is an object which, once called,
        returns objects with a pygame.Surface object in its
        'image' attribute and a pygame.Rect obj or
        equivalent in its 'rect' attribute, probably in
        the form of an iterator.
        """
        self.callable_obj = callable_obj
        self._rects_man = RectsManager(self.get_all_rects)
Store callable object and create RectsManager.

        The callable obj is an object which, once called,
        returns objects with a pygame.Surface object in its
        'image' attribute and a pygame.Rect obj or
        equivalent in its 'rect' attribute, probably in
        the form of an iterator.
        
nodezator/classes2d/collections.py