Update some snippets for ruby