Refactors ruby_prompts.