Method: Jim::Index#initialize

Defined in:
lib/jim/index.rb

#initialize(*directories) ⇒ Index

Initialize an Index with a list of directories. The firse directory is assumed to be the JIMHOME



8
9
10
11
# File 'lib/jim/index.rb', line 8

def initialize(*directories)
  @directories = [directories].flatten.compact
  @jimhome_re  = /#{Pathname.new(@directories.first).expand_path.to_s}/
end