On 12/1/06, Ruby Quiz <james / grayproductions.net> wrote:
> [Editor's Note:  I added a script to dump your turtle graphics output to PPM
> image files, for those that don't have TK up and running.  It works identically
> to Morton's turtle_viewer.rb, save that it writes output to a PPM image file in
> the current directory.  For example, to output the included tree image, use
> `ruby turtle_ppm_writer.rb samples/tree.rb`.  --JEG2]
>
Hello,
  Does the above work for everyone?

(~/turtle_graphics) > ruby turtle_ppm_writer.rb samples/tree.rb
turtle_ppm_writer.rb:47:in `run_code': undefined method `each' for
nil:NilClass (NoMethodError)
        from turtle_ppm_writer.rb:27:in `initialize'
        from turtle_ppm_writer.rb:75:in `new'
        from turtle_ppm_writer.rb:75

ruby 1.8.5 (2006-08-25) [powerpc-darwin8]

  Kurt