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 |
# 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 { |file| File.extname(file) == '.scss' } files.map do |file| Import.new File.(file) end else Import.new path end end |