From: Tim Hunter Date: 2007-10-21T03:43:24+09:00 Subject: Re: How to split ruby code into multiple files Cedric Vicenti wrote: > Hi guys, > > my ruby code is now a long file and I'd like to split it into different > smaller files so that I could reuse them in different programs and make > my original code smaller at the same time. > > One file should be used as the master and will reference the code of the > other files. > > Is it feasible? Do I have to create some sort of a #include command or > create function objects (I just need a code split, I do not want to > create objects). > > thank you. Use the require method to require individual files. -- RMagick OS X Installer [http://rubyforge.org/projects/rmagick/] RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618] RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html]