Ruby times loop refactoring
<p>I use Ruby 2.3.</p>

<p>I have code like this, and I want to refactor it and remove result variable.</p>

<pre><code>  def place_empty_seats num
    result=''
    num.times do
      result &lt;&lt; "&lt;li class='seat non_active'&gt;&lt;/li&gt;"
    end
    result.html_safe
  end
</code></pre>

<p>Unfortunately, I do not know the best way to look up refactoring questions besides StackOverflow. At shis moment I have no idea how to make it better, and I'll be very pleased for your input.</p>

<p>Thank you!</p>