Multi-Line Comments in Ruby?

后端 未结 10 1667
忘了有多久
忘了有多久 2020-11-30 16:21

How can I comment multiple lines in Ruby?

10条回答
  •  清歌不尽
    2020-11-30 16:37

    Despite the existence of =begin and =end, the normal and a more correct way to comment is to use #'s on each line. If you read the source of any ruby library, you will see that this is the way multi-line comments are done in almost all cases.

提交回复
热议问题