I use Ruby 2.3.
I have code like this, and I want to refactor it and remove result variable.
def place_empty_seats num
result=''
num.times do
result << "<li class='seat non_active'></li>"
end
result.html_safe
end
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.
Thank you!