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
#dependencies, #full_path, #is_asset, #language, #project
Instance Method Summary collapse
Methods inherited from JavascriptFile
#check_nib, #dependencies, #rewrite_content_relative_to_path
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
8 9 10 |
# File 'lib/distil/source-file/json-file.rb', line 8 def minified_content(source=content) super("(#{source})")[1..-3] end |