title: Emacs, ruby: convert do end block to curly braces and vice versa
body: <p>I often find myself converting code like this:</p>
  
  <pre><code>before do 
    :something
  end
  </code></pre>
  
  <p>to </p>
  
  <pre><code>before { :something }
  </code></pre>
  
  <p>Is there a way to automate this task in emacs? I use ruby-mode and rinary, but they're not too helpful here.</p>