可能重复: 了解范围和数组中的ruby splat
任何人都可以告诉我在下面的代码中做了什么?
line = "name=yabbi;language=ruby;" Hash[*line.split(/=|;/)]
谢谢.
ruby hash
hash ×1
ruby ×1