Add endwise for automatic 'end' generation in ruby