2

Possible Duplicate:
In Ruby what does “=>” mean and how does it work?

Just wondering what the => operator does in Ruby?

Community
  • 1
  • 1
Robin
  • 737
  • 2
  • 10
  • 23

1 Answers1

6

It points to a value of a key in a hash :

{:key => 'value'}
Spyros
  • 46,820
  • 25
  • 86
  • 129