Class: Distil::CssFile

Inherits:
SourceFile show all
Defined in:
lib/distil/source-file/css-file.rb

Instance Attribute Summary

Attributes inherited from SourceFile

#full_path, #parent_folder

Instance Method Summary collapse

Methods inherited from SourceFile

#add_asset, #add_dependency, #assets, #basename, #can_embed_as_content, #content, #copy_to, #dependencies, #error, #escape_embeded_content, #file_path, #file_path=, file_types, from_path, inherited, #initialize, #last_modified, #load_content, path_relative_to_folder, #relative_to_file, #relative_to_folder, #to_s, #to_str, #warning

Methods included from ErrorReporter

#error, error, #ignore_warnings, #ignore_warnings=, #report, warning, #warning

Constructor Details

This class inherits a constructor from Distil::SourceFile

Instance Method Details

#minified_content(source) ⇒ Object



8
9
10
# File 'lib/distil/source-file/css-file.rb', line 8

def minified_content(source)
  super(source).gsub(/\}/,"}\n").gsub(/.*@import url\(\".*\"\);/,'')
end