In an ERB template I want to render a hash into a list of config settings where strings need to be in quotes whereas values of other types don't. The template looks like this:
<%- @myhash.each_pair do |key, val| -%>
<%= key %> = <% if XXXXX %>"<%= val %>"<% else %><%= val %><% end %>
<%- end -%>
But what do I put as the condition (XXXXX
)?