Reputation: 4566
When working with Ruby on Rails in TextMate. I indent my multi-line comments like so
# This is a long comment and it'll run multiple lines so I'll
# indent the second line so people know it's part of the first comment.
In TextMate's Ruby bundle when you type a hash then hit tab it auto generates the following
# => This text is still treated as a comment.
What is the significance of the =>
symbol when used after a hash? Thanks!
Upvotes: 2
Views: 249
Reputation: 168269
It is just a convention among Ruby users to represent the return value of an expression. TextMate adopted this convention.
Upvotes: 7