title: How do you initialize variables in Ruby?
body: <p>Are there any differences between the following ways of initialization of variables?</p>
  
  <pre><code>@var ||= []
  @var = [] if @var.nil?
  @var = @var || []
  </code></pre>
  
  <p>Please share your way initializing a variable and state the pros &amp; cons.</p>