update snippets for Ruby