Hi,

At Mon, 13 Jul 2009 21:41:16 +0900,
Roger Pack wrote in [ruby-core:24311]:
> Background: currently if one wants to temporarily comment out more
> than one ruby code line [and doesn't have an editor to do it for them,
> and doesn't want to put the whole thing into a string].

Comment is for comment, not to keep unused code.

> 
> The only possible ways are:
> 
>  def go a, b
>   #some code
>   # ...
>   #more code
>  end
> 
> or
> 
>  def go a, b
> =begin
>   some code
>    ...
>   more code
> =end
>  end

 def go a, b
  <<-'COMMENT-OUT' && nil
  some code
   ...
  more code
  COMMENT-OUT
 end

-- 
Nobu Nakada