method

keys_to_symbols

rails latest stable - Class: HTML::Conditions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.1.8) is shown here.

keys_to_symbols(hash)
private

No documentation available.

# File actionview/lib/action_view/vendor/html-scanner/html/node.rb, line 44
      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