macro for checking ruby syntax