From: Joey Date: 2006-11-03T02:15:16+09:00 Subject: RubyInline ------=_Part_9908_9258345.1162487712612 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline So, Im trying to move away from mkmf, and onto RubyInline. I can't work out how to define alloc functions from Inline, I tried something like: class Y inline :C do |builder| builder.c <<-ENC void Init_Y(){ } ENC end end but that makes Init_Y a instance method, and I'm unsure of how to get the klass. Has anyone done this before? Thanks, Joey http://www.eachmapinject.com ------=_Part_9908_9258345.1162487712612--