Method: Hash#recode

Defined in:
lib/arachni/ruby/hash.rb

#recodeHash

Recursively converts the hash's string data to UTF8.

Returns:

  • (Hash)

    Copy of self with all strings recoded to UTF8.



95
96
97
98
99
100
101
# File 'lib/arachni/ruby/hash.rb', line 95

def recode
    recoded = {}
    each do |k, v|
        recoded[k] = (v.respond_to?( :recode ) ? v.recode : v)
    end
    recoded
end