Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/react/ext/hash.rb
Instance Method Summary collapse
Instance Method Details
#shallow_to_n ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/react/ext/hash.rb', line 2 def shallow_to_n hash = `{}` self.map do |key, value| `hash[#{key}] = #{value}` end hash end |