Simpler definition for Ruby prompts.

- Don't use returnBegin
- Look for comments before prompts

Fixes #523.