From: Brian Candler Date: 2010-08-26T22:57:49+09:00 Subject: Re: warning: method redefined Iain Barnett wrote: > It turns out one of the other files in the library also had require > 'file/fo'o etc, so some files were required twice. What I don't > understand is why this would generate warnings, as my understanding is > that require can be called as multiple times but will only load the > files once. Is this incorrect? It can happen if you require them in different ways, e.g. require 'file/fo' require './file/fo' require '../lib/file/fo' require File.join(File.dirname(__FILE__), 'fo') If that's what's happening, the solution is to be consistent with your require statements, and if necessary set up $: (aka $LOAD_PATH) suitably at the start of your program. -- Posted via http://www.ruby-forum.com/.