Dirk Meijer wrote:
> require 'filename'
> 
> you're welcome

Or,

`ruby filename.rb`  # back-tics

which will trigger code that is testing to see if the file is called 
directly. E.g.:

if __FILE__ == $0
   # do me!
end

James
-- 

http://www.ruby-doc.org       - Ruby Help & Documentation
http://www.artima.com/rubycs/ - The Journal By & For Rubyists
http://www.rubystuff.com      - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com     - Playing with Better Toys
http://www.30secondrule.com   - Building Better Tools