reorganize ruby snippets