How do you comment out a block of code? I know of the # but not how to
comment out several lines with a simple step.
On 4 Sep 2006, at 09:39, Pål Bergström wrote:
How do you comment out a block of code? I know of the # but not how to
comment out several lines with a simple step.
Use:
=begin
lines to comment
more lines
=end
Paul
Use:
=begin
lines to comment
more lines
=end
I stand corrected :0)
Steve
How do you comment out a block of code? I know of the # but not how to
comment out several lines with a simple step.
Lots of #s :0)
As far as i’m aware, ruby doesn’t have multi-line commenting. If you’re
using Textmate, you can comment blocks by highlighting the lines and
pressing Command+/
Steve
Hi Pål,
How do you comment out a block of code? I know of the # but not how to
comment out several lines with a simple step.
Check out
http://www.ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/
syntax.html#comment
When I want to disable a bunch of code quick and dirty like, I just
slap an “if false” on it.