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
Advertisement