Sha256: cea1ee3afa3e144117fa79de2bd4a831c28b93ddc1f5919c63b929283407246f
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
module SassCreator class SassFile def initialize file_hash file_hash.each do |file, dependency_list| File.open file, 'w' end @dependencies = file_hash end def build_import_comments @dependencies.each do |file, dependency_list| File.open(file, 'r+') do |file| dependency_list.each do |dependency| file.write "//import \"#{dependency.to_s}\"\n" end end end end def build_imports @dependencies.each do |file, dependency_list| File.open(file, 'r+') do |file| dependency_list.each do |dependency| file.write "@import \"#{dependency.to_s}\"\n" end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bundler-sass-0.1.2 | lib/sass_creator.rb |