Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#deep_strip!Object



2
3
4
5
6
7
8
9
10
# File 'lib/molten_core/hash.rb', line 2

def deep_strip!
  self.each do |key, value|
    if value.respond_to?(:strip)
      self[key] = value.strip
    elsif value.respond_to?(:deep_strip!)
      self[key] = value.deep_strip!
    end
  end
end