Simple code snippets to learn Ruby