Class: Distil::JsonFile
- Inherits:
-
JavascriptFile
- Object
- SourceFile
- JavascriptFile
- Distil::JsonFile
- Defined in:
- lib/distil/source-file/json-file.rb
Instance Attribute Summary
Attributes inherited from SourceFile
Instance Method Summary collapse
Methods inherited from JavascriptFile
#can_embed_as_content, #escape_embeded_content
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
10 11 12 |
# File 'lib/distil/source-file/json-file.rb', line 10 def minified_content(source) super("(#{source})")[1..-3] end |