Implement simple Ruby prompt when you press 'r'.