Ruler library based on bobthecow/Ruler