# File lib/core/facets/enumerable/hashify.rb, line 21 def hashify(val=true) h = {} if block_given? each { |item| h[item] = yield(item) } else each { |item| h[item] = val } end h end