The =begin token starts a multi-line comment and the =end token finishes it. These tokens should be placed at the start of the line and should be the only thing on it. The Ruby interpreter ignores everything between these two tokens. The Ruby interpreter disregards lines.
UPDATE: In TextMate, Cmd + / toggles commenting every line in a selection regardless of language, if you have the correct language selected.
One or more lines of narrative are contained within a set of comment delimiters in multi-line comments. The comment begins with the /* delimiter and ends with the */ delimiter. You can have many lines in your comment, and anything between the delimiters is considered a comment.
Before the line to be remarked, the hash character should be used. In Python, single-line comments can be combined to form multiline comments. The interpreter stops the first two lines from being executed because they include the hash character(#).
Multiline comments are used to comment out parts of code while debugging applications or for extensive text descriptions of code. The compiler disregards comments.
Share With Friend
Have a friend to whom you would want to share this course?
Download LearnVern App
Download the app
Learn anywhere on the go
Get regular updates about your enrolled or new courses
Share content with your friends
Evaluate your progress through practice tests
No internet connection needed
Enroll for the webinar and join at the time of the webinar from anywhere
Enjoying this course!
All the Courses on Learnvern are Free! So Register/Sign in to
have Access all the Courses and Videos.