Class: HtmlFile
- Inherits:
-
SourceFile
- Object
- SourceFile
- HtmlFile
- Defined in:
- lib/file-types/html-file.rb
Instance Attribute Summary
Attributes inherited from SourceFile
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from SourceFile
#add_asset, #add_dependency, #assets, #basename, #can_embed_as_content, #content, #content_type, #copy_to, #debug_content, #dependencies, #error, #escape_embeded_content, #extension, #file_path, #file_path=, file_types, #filtered_content, from_path, inherited, #initialize, #load_content, path_relative_to_folder, #relative_to_file, #relative_to_folder, #to_s, #to_str, #warning
Constructor Details
This class inherits a constructor from SourceFile
Class Method Details
.extension ⇒ Object
3 4 5 |
# File 'lib/file-types/html-file.rb', line 3 def self.extension ".html" end |
Instance Method Details
#minify_content(source) ⇒ Object
7 8 9 |
# File 'lib/file-types/html-file.rb', line 7 def minify_content(source) source.gsub(/>\s+</, "><") end |