提交 bbd37753 编写于 作者: F Francesco Rodriguez

Fixing Hash#stringify_keys docs

上级 c81f11d1
class Hash
# Return a new hash with all keys converted to strings.
#
# { name: 'Rob', years: '28' }.stringify_keys
# { :name => 'Rob', :years => '28' }.stringify_keys
# #=> { "name" => "Rob", "years" => "28" }
def stringify_keys
result = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册