Fix up Ruby snippets