On Saturday 06 December 2003 07:59 pm, Hal Fulton wrote:
> It could just be a "marker" as someone suggested.
>
> My two favorites so far are __TEST__ and __MAIN__.
>
> As far as I can see, there should be no conflict or interaction
> with the __END__ marker.
>
> Comments?

Do I understand you correctly, Hal?

sample.rb:

  #!/usr/bin/ruby

  # ruby code that won't be executed

  __MAIN__

  # code that will normally be

  __TEST__

  # will run instead if test (or debug?) flag

  __END__

  # raw data