def snap_rects_ip(
        self,
        retrieve_pos_from="topright",
        assign_pos_to="topleft",
        offset_pos_by=(0, 0),
    ):
        """Align rects relative to each other.

        Usage
        =====

        Use to reposition each rect in relation to the
        other. Works by retrieving the position of one rect,
        applying an offset (which default to no offset at
        all) and assigning the position to the next rect.

        Parameters
        ==========

        retrieve_pos_from (string)
            name of pygame.Rect attribute from which to
            retrieve position information in one rect in
            order to assign such position information to
            the next rect.
        assign_pos_to (string)
            name of pygame.Rect attribute to which assign
            the position information retrieved from the
            previoius rect.
        offset_pos_by (tuple/list with 02 integers)
            represent an offset to be applied to the
            retrieved position.
        """
        for rect in self._get_all_rects():

            try:
                setattr(rect, assign_pos_to, pos)
            except NameError:
                pass

            pos = getattr(
                rect.move(offset_pos_by),
                retrieve_pos_from,
            )
Align rects relative to each other.

        Usage
        =====

        Use to reposition each rect in relation to the
        other. Works by retrieving the position of one rect,
        applying an offset (which default to no offset at
        all) and assigning the position to the next rect.

        Parameters
        ==========

        retrieve_pos_from (string)
            name of pygame.Rect attribute from which to
            retrieve position information in one rect in
            order to assign such position information to
            the next rect.
        assign_pos_to (string)
            name of pygame.Rect attribute to which assign
            the position information retrieved from the
            previoius rect.
        offset_pos_by (tuple/list with 02 integers)
            represent an offset to be applied to the
            retrieved position.
        
nodezator/rectsman/singlepos.py