Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#hmapObject



221
222
223
224
225
226
227
228
# File 'lib/bad_word_detector.rb', line 221

def hmap
  result = {}
  self.each do |k, v|
    k, v = yield k, v
    result[k] = v
  end
  result
end