shorter and classier hook into Ruby