Class: CssFile

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

Instance Attribute Summary

Attributes inherited from SourceFile

#full_path, #parent_folder

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, #dependencies, #error, #escape_embeded_content, #extension, #file_path, #file_path=, file_types, #filtered_content, from_path, inherited, #initialize, #load_content, #minify_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

.extensionObject



3
4
5
# File 'lib/file-types/css-file.rb', line 3

def self.extension
  ".css"
end

Instance Method Details

#debug_content(options) ⇒ Object



7
8
9
10
# File 'lib/file-types/css-file.rb', line 7

def debug_content(options)
  destination= File.expand_path(options.remove_prefix||"")
  "@import url(\"#{self.relative_to_folder(destination)}\");\n"
end