From: Albert Schlef Date: 2009-02-03T01:09:39+09:00 Subject: Extensions and 'require' Hello! I'm creating a 'gem' package for a ruby extension written in C. I have a little problem: First, let's suppose the package is called "Mambo". Now, the ".so" (or ".dll", or whatever) is called "mambo.so". In addition to "mambo.so", I also have a "mambo.rb" which adds some finishing touches to the Mambo module defined in "mambo.so". The problem is this: If the user does "require 'mambo'" in his code, Ruby will load "mambo.rb". It won't load "mambo.so" (because require first checks for .rb, only then for .so). So how can I cause "mambo.so" to get loaded? One solution is to rename "mambo.rb" to, say, "mambo_something.rb", and in it to "require 'mambo'". But... it doesn't look neat. What's the "official" way to solve this problem? -- Posted via http://www.ruby-forum.com/.