Fixed Ruby snippets.