1

In the Ruby Kickstart tutorial ('05:10), when a hash rocket # => is typed within the text editor, it shows what the expression will evaluate to. For example:

2 + 3    # =>    5

I am using Sublime Text 2, though cannot find how to get this to work. I would appreciate any guidance.

sawa
  • 165,429
  • 45
  • 277
  • 381
Phoebe
  • 198
  • 6
  • 1
    That is just a comment. They start with `#` in Ruby. – squiguy Mar 09 '15 at 13:39
  • Thats' a comment; as you can see [here](http://www.tutorialspoint.com/ruby/ruby_comments.htm) comments can start at any position of a line. – mdesantis Mar 09 '15 at 13:40
  • In simplest term it means `2+3` will return `5`. `# =>` is not a method or anything like that. `#` is for comment and `=>` points to return value. – shivam Mar 09 '15 at 13:41
  • 1
    This question is a duplicate of https://superuser.com/questions/472413 . – Gabe Kopley Mar 09 '15 at 13:45
  • squiguy, mdesantis, shivam, your comments are all useless. This question is not about Ruby's feature or a method. It is about a feature of a text editor. – sawa Mar 09 '15 at 13:54

2 Answers2

2

Check out Ruby Markers plugin.

Pᴇʜ
  • 56,719
  • 10
  • 49
  • 73
1

Josh Cheek's Seeing is believing does that.

steenslag
  • 79,051
  • 16
  • 138
  • 171