I have variables
 <% mon_has_two_sets_of_working_hours = 0 %>
 <% tue_has_two_sets_of_working_hours = 0 %>
 <% wed_has_two_sets_of_working_hours = 0 %>
I want to change the values of these variables dynamically.
 <% days_array = ['mon', 'tue', 'wed'] %>
 <% days_array.each do |day| %>
   <% if condition? %>
    # here i want to set %>
     <% "#{day}__has_two_sets_of_working_hours" = 1 %>
  end
 end
The value is not getting assigned. Is there any way to assign value to variable dynamically?
 
     
     
     
     
    