Method: Interscript.maps
- Defined in:
- lib/interscript.rb
.maps(basename: true, load_path: false, select: "*", libraries: false) ⇒ Object
List all possible maps to use
154 155 156 157 158 159 160 161 |
# File 'lib/interscript.rb', line 154 def maps(basename: true, load_path: false, select: "*", libraries: false) paths = load_path ? Interscript.load_path : Interscript.map_locations ext = libraries ? "iml" : "imp" imps = paths.map { |i| Dir["#{i}/#{select}.#{ext}"] }.flatten basename ? imps.map { |j| File.basename(j, ".#{ext}") } : imps end |