Class: Sasstool::Importer
- Inherits:
-
SassC::Importer
- Object
- SassC::Importer
- Sasstool::Importer
- Defined in:
- lib/sasstool/importer.rb
Instance Method Summary collapse
Instance Method Details
#imports(path, parent_path) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/sasstool/importer.rb', line 3 def imports(path, parent_path) if path.include? "*" dir = File.dirname parent_path glob = "#{dir}/#{path}" files = Dir[glob].select do |file| ['.scss', '.sass'].include? File.extname(file) end files.map do |file| Import.new File.(file) end else Import.new path end end |