In Javascript, I was used to multi-line commenting like this:
/* */
It was fast, easy, and simple. I tried doing the same thing in Ruby! Alas, that did not work. Although single line commenting is fine:
#
I did not know how to multi-line comment. Lo and behold, it was more complicated than in Javascript:
=begin
This is a
multi-line comment in Ruby
=end
Fortunately, I learned that simply doing
Cmd + /
was a much faster way to multi-line comment, which incidentally, is the same shortcut used to multi-line comment in JS!
Top comments (1)
found this post insightful! thanks Cisco!