Port Stackslurp to 81 lines of Ruby.