valid ruby in code examples