From: boris Date: 2002-02-11T19:24:31+09:00 Subject: Re: module behavior On Mon, Feb 11, 2002 at 12:08:21PM +0900, Yukihiro Matsumoto muttered... : Hi, : : In message "module behavior" : on 02/02/11, Chris "boris" Ross writes: : : |If you have a native module and a script module called 'foo' - with their : |respective extensions and within a script you do: : | : | require "foo"; : | : |What is the behavior? Does just the native module get loaded? or does the : |script get loaded? Or do both get loaded? and if so in what order? : : "foo.rb" has higher priority, so that it is loaded. You can load : "foo.so" from "foo.rb" by explicitly specifying : : require "foo.so" : : This behavior is to wrap extension library by Ruby script. Ok, thats what I thought, thanks :) Regards, Chris -- +------------------------------------------------------------------+ | Chris Ross | chris@darkrock.co.uk | ctr@ferite.org | | | http://www.darkrock.co.uk | http://www.ferite.org | +------------------------------------------------------------------+ "Change is inevitable -- except from a vending machine."