What does '# => ' represent in Ruby/Rails?

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!

Answers


It is just a convention among Ruby users to represent the return value of an expression. TextMate adopted this convention.


Need Your Help


About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.