From: Brian Candler Date: 2009-12-16T23:33:29+09:00 Subject: Re: Split Module to multiple Files? Frank Guerino wrote: > 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? Here's one way: -- foo1.rb -- class Foo def method1 end end -- foo2.rb -- class Foo def method2 end end -- foo.rb -- require 'foo1' require 'foo2' But you don't see this very often, because it's unusual to have a single class containing hundreds of methods. Normally the problem partitions better into smaller classes. -- Posted via http://www.ruby-forum.com/.