Ruby block snippets