From: Derek Cannon Date: 2010-04-16T13:39:08+09:00 Subject: Re: Is this good OOP structuring? >class CourseController > def initialize(...) # whatever it needs > end > > def self.read_url(url) > ... > cc = new(...) > ... > cc > end > > def self.read_file(file_name) > end >end "def self.name" makes the method static, right? Is there any particular reason why it is best to do this than have the url part in the constructor? What exactly is "modularity"? What do you gain from doing this? Thanks, Derek -- Posted via http://www.ruby-forum.com/.