title: Convert string to variable name in ruby
body: <p>I have variables</p>
  
  <pre><code> &lt;% mon_has_two_sets_of_working_hours = 0 %&gt;
   &lt;% tue_has_two_sets_of_working_hours = 0 %&gt;
   &lt;% wed_has_two_sets_of_working_hours = 0 %&gt;
  </code></pre>
  
  <p>I want to change the values of these variables dynamically.</p>
  
  <pre><code> &lt;% days_array = ['mon', 'tue', 'wed'] %&gt;
  
   &lt;% days_array.each do |day| %&gt;
     &lt;% if condition? %&gt;
      # here i want to set %&gt;
       &lt;% "#{day}__has_two_sets_of_working_hours" = 1 %&gt;
    end
   end
  </code></pre>
  
  <p>The value is not getting assigned. Is there any way to assign value to variable dynamically?</p>