Multifunction ruler