adjust ruby snippets to be more minimalistic