Improved import

if anyone’s interested:

def import(*args)
fd = File.dirname(caller[0])
args.each do |file_name|
require File.join(fd, file_name)
end
end

now you can do:

import ‘file1’, ‘file2’, ‘file3’

and you’ll actually get a slight speed boost. i have found this #import method
to be very very useful.

···


tom sawyer, aka transami
transami@transami.net