From: Albert Schlef Date: 2010-01-06T13:57:09+09:00 Subject: Re: Subclassing in a C extension Eric Christopherson wrote: > My questions: > > 1. The original Mysql class is installed as a gem. Should my extension > use rb_require("rubygems")? Or is requiring rubygems the > responsibility of the scripts that use it? > > 2. Why doesn't rb_require("mysql") work? In a script or irb, I am able Here's a simple solution: ship a mysqlemb.rb file with your extension, to be required by programmers. This file will "require 'mysql'", then will "require 'mysqlemv_ext'" to load the C extension. -- Posted via http://www.ruby-forum.com/.