Class: Saneitized::Hash

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/saneitized/hash.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Hash

Returns a new instance of Hash.



5
6
7
8
9
10
# File 'lib/saneitized/hash.rb', line 5

def initialize(hash)
  super(hash)
  hash.each do |key, value|
    hash[key] = Saneitized.convert(value)
  end
end