From: Johannes Held Date: 2006-09-08T02:48:12+09:00 Subject: Re: Split script into several files Peter Meier schrieb: > I want to share some classes between different scripts. > Something like a small library. > > How can I do this? Put your code into modules and "require" them. module Kewl #saved in kewl.rb class Foo def x puts "hello" end end end And then use it: require 'kewl' obj = Kewl::Foo.new obj.x -- Gruß, Johannes http://www.hehejo.de http://gallery.hehejo.de/jo