Multi-line comment in Ruby


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


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




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