class Hash

Public Instance Methods

shallow_to_n() click to toggle source
# File lib/react/ext/hash.rb, line 2
def shallow_to_n
  hash = `{}`
  self.map do |key, value|
     `hash[#{key}] = #{value}`
  end
  hash
end