From: Joel VanderWerf Date: 2007-09-23T06:50:05+09:00 Subject: Re: CplusRuby - Gluing C and Ruby Daniel Berger wrote: > - require "#{dir}/#{mod}.so" > + require "#{dir}/#{mod}." + CONFIG['DLEXT'] > end > > def self.generate_code_for_class > > Mostly fixes MS Windows issues, but the DLEXT bit also fixes platforms > that don't generate .so files (OS X, HP-UX). Why not just > + require "#{dir}/#{mod}" which should work if there are no stray .rb files in the dir? -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407