34,333
edits
Changes
→Multi Line or Block Ruby Comments
== Multi Line or Block Ruby Comments ==
Multiple lines of text or code can be defined as comments using the Ruby ''==begin'' and ''==end'' comment markers. These are known as the comment block markers.
For example, to provide a comment block containing multiple lines of descriptive text:
<pre>
This is a comment line
it explains that the next line of code displays
a welcome message
</pre>
<pre>
print "Welcome to Ruby Essentials!"
print "Everything you need to know about Ruby"
</pre>