method

keys_to_symbols

Importance_0
v2.2.1 - Show latest stable - 0 notes - Class: HTML::Conditions
keys_to_symbols(hash) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/vendor/html-scanner/html/node.rb, line 47 def keys_to_symbols(hash) hash.keys.inject({}) do |h,k| raise "illegal key #{k.inspect}" unless k.respond_to?(:to_sym) h[k.to_sym] = hash[k] h end end
Register or log in to add new notes.