title: Difference between a || a = b and a = a || b in ruby?
body: <p>Can anyone put light on this expression. Seems like both are same but they are not.</p>
  
  <pre><code>a || a = b or a ||= b
  </code></pre>
  
  <p>and</p>
  
  <pre><code>a = a || b
  </code></pre>
  
  <p>if </p>
  
  <p><code>a = 4</code> and <code>b = 6</code>, output is always <code>4</code></p>
  
  <p>This always confuse and misconcept me. Can someone please explain it?</p>