Question on =begin and =end
-
I ran across a ruby that has these used in it.
am I correct in understanding it is the same as using the rem ## except it remarks out anything between them?
like this=begin
none of this would be processed
regardless of what is inside
the processing ruby
=endCoding continues...
-
Correct, Ruby does not process the lines between. They are typically used for block comments. And if used, the equal sign must be the first character in the line (no whitespace.)
-
@jim said:
Correct, Ruby does not process the lines between. They are typically used for block comments. And if used, the equal sign must be the first character in the line (no whitespace.)
Thank you for the answer.
that helps me understand a bit more of ruby scripting
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement