Displaying 1 result from an estimated 1 matches for "something_that_depends_on_".
Did you mean:
  something_that_depends_on_e
  
2006 Aug 17
2
Creating function name from variables..
...''def'', ''klm'', ...) and 
so I''m looking for a DRY way to call these by still keeping what I did 
above.  I want to do:
<%= [''abc'', ''def'', ''klm''].each do |e| %>
   <tr><%  a, b = format_{something_that_depends_on_e} (@result[e], 
@result[e+''rating'']) %>  ### <-- what do I use?
            <td><%= a  %></td>
            <td> <%= b %></td>
    </tr> 
<% end %>
Any ideas?  Or can I not use something to construct the name... I tried 
a var...