Module: Enumerable

Defined in:
lib/html-cleaner.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#build_hashObject



172
173
174
175
176
177
178
179
# File 'lib/html-cleaner.rb', line 172

def build_hash
  result = {}
  self.each do |elt|
    key, value = yield elt
    result[key] = value
  end
  result
end