From: Farrel Lifson Date: 2008-08-06T16:45:56+09:00 Subject: Re: Processing code file inline 2008/8/6 Greg Willits : > > # contrived script to load the file and process it > timer_start = Time.new > index_33dob = {} > include "33dob_entries.rb" # <<--- WHAT DO HERE ? > timer_stop = Time.new > puts "#{timer_stop - timer_start}" > p index_33dob Read the file into a string, and then use Kernel#eval. Just a warning that this can be very unsafe if you don't trust the processes generating the code. Regards, Farrel -- Aimred - Ruby Development and Consulting http://www.aimred.com