if it isn't part of the syntax.. wouldn't it then be better if Ruby rejected
such lines?
=begin reject me
=end reject me too
···
On Wednesday 23 June 2004 16:07, nobu.nokada@softhome.net wrote:
At Wed, 23 Jun 2004 21:09:21 +0900,
Simon Strandgaard wrote in [ruby-talk:104411]:
> I have noticed that you can type text on the same line as =begin/=end
> as long its not semicolon.. without semicolon it works.
=end line must not be followed by non-space characters. It is
not a part of ordinary syntax.
At Wed, 23 Jun 2004 23:16:16 +0900,
Simon Strandgaard wrote in [ruby-talk:104416]:
> > I have noticed that you can type text on the same line as =begin/=end
> > as long its not semicolon.. without semicolon it works.
>
> =end line must not be followed by non-space characters. It is
> not a part of ordinary syntax.
if it isn't part of the syntax.. wouldn't it then be better if Ruby rejected
such lines?
It is a part, but quite different from other parts. And
documentation tools can select enabled portion by them.