To process multi-line annotations in Ruby

Asked 2 years ago, Updated 2 years ago, 62 views

In c, /**/ and in Python, ' are used to annotate several lines.

How do I write multiple line annotations in Ruby?

ruby comment

2022-09-22 08:57

1 Answers

=begin
woman
R
line
Week
Three
one´s wife
Lee
=end

#or
#Like this
#Put the sharp end on it

<<-DOC
in doc
Let's make it
DOC

There are many other options, such as string, but when annotating multiple lines, you usually use # on all lines.


2022-09-22 08:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.