Answer: Use =begin and =end. =begin def my_commented_out_method end =end You could use successive # signs, but that’s just tedious: # # def my commented_out_method # end #
Question:
How do you comment out a block of code? Answer:
Use =begin and =end. =begin def my_commented_out_method end =end You could use successive # signs, but that’s just tedious: # # def my commented_out_method # end # Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.