From: "Jan E." Date: 2012-04-19T18:47:41+09:00 Subject: Re: Breaking large Ruby script into multiple files Hi, Just a small note: When including a script, don't rely on the current directory (i. e. don't write something like require './myscript.rb'). The current directory depends on how the Ruby interpreter was invoked and may even change during runtime. Either use absolute paths or require_relative (in Ruby 1.9). But I definitely agree with the previous posters that you should program object oriented rather than have a bunch of single functions (they're actually methods) floating around. While Ruby does allow classical procedural programming to some extend (or at least makes the code look like it), this is certainly not recommended for larger scripts. And Ruby isn't Fortran. I think the best way to scructure your code is to put every class in its own file and then include them in certain "executable scripts". -- Posted via http://www.ruby-forum.com/.