2 3 4 5 6 7 8
# File 'lib/react/ext/hash.rb', line 2 def shallow_to_n hash = `{}` self.each do |key, value| `hash[#{key}] = #{value}` end hash end