lib/wmiirc/loader.rb
##
# Tries to find the given file inside WMII_CONFPATH or
# the user's personal wmii configuration directory.
#
# Returns nil if the file could not be found.
#
Tries to find the given file inside WMII_CONFPATH or
the user's personal wmii configuration directory.

Returns nil if the file could not be found.
Tries to find the given file inside WMII_CONFPATH or the user ' s personal wmii configuration directory . Returns nil if the file could not be found .
def find file
        base_dirs = ENV['WMII_CONFPATH'].to_s.split(/:+/).unshift(DIR)
        ruby_dirs = base_dirs.map {|dir| File.join(dir, 'ruby') }
        Dir["{#{base_dirs.zip(ruby_dirs).join(',')}}/#{file}"].first || 
            raise(IOError, "can't find config-file #{file}")
      end
def find file base_dirs = ENV [ 'WMII_CONFPATH' ] . to_s . split ( / :+ / ) . unshift ( DIR ) ruby_dirs = base_dirs . map { | dir | File . join ( dir , 'ruby' ) } Dir [ "{#{base_dirs.zip(ruby_dirs).join(',')}}/#{file}" ] . first || raise ( IOError , "can't find config-file #{file}" ) end
Tries to find the given file inside WMII_CONFPATH or
the user's personal wmii configuration directory.
Tries to find the given file inside WMII_CONFPATH or the user ' s personal wmii configuration directory .
file
<not_specific>