From: Frank Guerino Date: 2009-12-16T21:10:27+09:00 Subject: Re: Split Module to multiple Files? Martin Boese wrote: > You can do: > > == myModule.rb > module MyModule > eval File.open('test1.rb').read > eval File.open('test2.rb').read > end > > > But this would be ugly, the better way IMO is to define the classes > individually within modules: > > == test.rb: > module MyModule > class Test > (...) > end > end > > == test2.rb: > module MyModule > class Test2 > (...) > end > end > > == myModule.rb > require 'test' > require 'test2' > > > Martin ========================= Hi, I've just started writing Ruby and have a very long file of, both, methods and files. I understand the above file partitioning methodology for classes. Does it also work for methods? If so, how would it look? Thanks very much for the help, Frank -- Posted via http://www.ruby-forum.com/.