little tweak on ruby snippets