small modify on ruby.snippets