Adding ruby snippets for #each and #map