From: "Jesús Gabriel y Galán" Date: 2010-10-29T02:16:40+09:00 Subject: Re: undefined method `find' for.:Module On Thu, Oct 28, 2010 at 7:12 PM, John Hammink wrote: > Using all of the above suggestions, I have gotten exactly nowhere: Sorry, you only need one of the suggestions when running your script from the command line, and it's the one you are not copying (in fact you need this one for your method to work at all. Please look with great care what I'm going to write: You need to change this line: find(*paths) { |path| matched << path if yield path } to Find.find(*paths) { |path| matched << path if yield path } You see? When you require find, it creates a class or module (I don't know off the top of my head) with a class method called find. You need to call it like that or Ruby won't find it (no pun intended). You don't need to change the require 'find' to anything else, cause "find" is in the stdlib and is available in the load path. Jesus.