Module: Enumerable

Defined in:
lib/html-cleaner.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#build_hashObject



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

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