On Thu, Jun 17, 2004 at 12:53:08PM +0900, Richard Kilmer wrote:
> I second that, and actually put some 'require' statements in methods right
> before I use them.  That way if a method is called, the library is loaded,
> otherwise not:
> 
>   def load_from_yaml(filename)
>     require 'yaml'
>     YAML.load(File.read(filename))
>   end
> 
> So if this method is called, yaml is loaded (if necessary), otherwise its
> not.

Note that this could bite you:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/95409

-- 
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

Checking host system type...
i586-unknown-linux
configure: error: sorry, this is the gnu os, not linux
	-- Topic on #Linux