classy hook into Ruby