Sha256: 955bbea54a2a0179a35e2ec422c5244d10da6bd7771d2bb25a1d9ce29ad080c9

Contents?: true

Size: 240 Bytes

Versions: 20

Compression:

Stored size: 240 Bytes

Contents

require "distil/source-file/javascript-file"

module Distil
  
  class JsonFile < JavascriptFile
    
    extension 'json'
    content_type 'js'
    
    def minified_content(source)
      super("(#{source})")[1..-3]
    end
  
  end
  
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
distil-0.13.6 lib/distil/source-file/json-file.rb
distil-0.13.5 lib/distil/source-file/json-file.rb
distil-0.13.4 lib/distil/source-file/json-file.rb
distil-0.13.3 lib/distil/source-file/json-file.rb
distil-0.13.2 lib/distil/source-file/json-file.rb
distil-0.13.1 lib/distil/source-file/json-file.rb
distil-0.13.0 lib/distil/source-file/json-file.rb
distil-0.12.6 lib/distil/source-file/json-file.rb
distil-0.12.4 lib/distil/source-file/json-file.rb
distil-0.12.3 lib/distil/source-file/json-file.rb
distil-0.12.2 lib/distil/source-file/json-file.rb
distil-0.12.1 lib/distil/source-file/json-file.rb
distil-0.12.0 lib/distil/source-file/json-file.rb
distil-0.11.8 lib/distil/source-file/json-file.rb
distil-0.11.6 lib/distil/source-file/json-file.rb
distil-0.11.5 lib/distil/source-file/json-file.rb
distil-0.11.4 lib/distil/source-file/json-file.rb
distil-0.11.3 lib/distil/source-file/json-file.rb
distil-0.11.1 lib/distil/source-file/json-file.rb
distil-0.11.0 lib/distil/source-file/json-file.rb