# File lib/pluginfactory.rb, line 365 365: def makeRequirePath( modname, subdir ) 366: path = [] 367: myname = self.factoryType 368: 369: # Make permutations of the two parts 370: path << modname 371: path << modname.downcase 372: path << modname + myname 373: path << modname.downcase + myname 374: path << modname.downcase + myname.downcase 375: 376: # If a non-empty subdir was given, prepend it to all the items in the 377: # path 378: unless subdir.nil? or subdir.empty? 379: path.collect! {|m| File::join(subdir, m)} 380: end 381: 382: return path.uniq.reverse 383: end