From: John Hammink Date: 2010-10-29T02:12:16+09:00 Subject: Re: undefined method `find' for.:Module Using all of the above suggestions, I have gotten exactly nowhere: The .rb now looks like this: require './find' #NOTE: also tried - require 'find' - same error module Froop def match(*paths) matched=[] find(*paths) { |path| matched << path if yield path } return matched end module_function :match end E:\Sounds\Digital>irb irb(main):001:0> require './Froop' => true irb(main):002:0> Froop.match("./") { |p| ext = p[-4...p.size]; ext && ext.downcase == "mp3" } NoMethodError: undefined method `find' for Froop:Module from E:/Sounds/Digital/Froop.rb:6:in `match' from (irb):2 from C:/Ruby192/bin/irb:12:in `
' -- Posted via http://www.ruby-forum.com/.