Method: Hash#downcase
- Defined in:
- lib/arachni/ruby/hash.rb
#downcase ⇒ Hash
Returns Self with the keys and values converted to lower-case strings.
82 83 84 85 86 87 88 89 |
# File 'lib/arachni/ruby/hash.rb', line 82 def downcase my_stringify_keys.inject({}) do |h, (k, v)| k = k.downcase if k.is_a?( String ) v = v.downcase if v.is_a?( String ) h[k] = v h end end |