Multi-line comment in Ruby


#1



https://www.codecademy.com/courses/ruby-beginner-en-d1Ylq/2/2?curriculum_id=5059f8619189a5000201fbcb

Oops, try again. It looks like you didn't include =begin. Make sure there's no space between the equals sign and the word begin!


I know this is bonkers but I got stuck with this exercise. What's wrong with my code?

=begin this is a comment
another comment =end


#2

These multiline comments are similar to heredocs in PHP. The first line and last line are critical.

=begin


=end

#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.