class HTML::Conditions
def keys_to_symbols(hash)
def keys_to_symbols(hash) Hash[hash.keys.map do |k| raise "illegal key #{k.inspect}" unless k.respond_to?(:to_sym) [k.to_sym, hash[k]] end] end
def keys_to_symbols(hash) Hash[hash.keys.map do |k| raise "illegal key #{k.inspect}" unless k.respond_to?(:to_sym) [k.to_sym, hash[k]] end] end