Class: Distil::HtmlFile
- Inherits:
-
SourceFile
- Object
- SourceFile
- Distil::HtmlFile
- Defined in:
- lib/distil/source-file/html-file.rb
Instance Attribute Summary
Attributes inherited from SourceFile
#dependencies, #full_path, #is_asset, #language, #project
Instance Method Summary collapse
Methods inherited from SourceFile
#add_asset, #add_dependency, #assets, #basename, #content, #content_type, #copy_to, #dirname, #error, #extension, #initialize, #last_modified, #output_path, #path_relative_to, #path_relative_to_folder, #relative_path, #rewrite_content_relative_to_path, #to_s, #to_str, #warning
Methods included from ErrorReporter
#error, error, #has_errors?, #has_warnings?, #ignore_warnings, #ignore_warnings=, #report, #total_error_count, #total_warning_count, warning, #warning
Constructor Details
This class inherits a constructor from Distil::SourceFile
Instance Method Details
#minified_content(source = content) ⇒ Object
7 8 9 |
# File 'lib/distil/source-file/html-file.rb', line 7 def minified_content(source=content) source.gsub(/>\s+</, "><") end |