标签: ruby operators
可能重复: In Ruby what does “=>” mean and how does it work?
只是想知道=>运算符在Ruby中的作用是什么?
=>
答案 0 :(得分:6)
它指向散列中键的值:
{:key => 'value'}