class Sprockets::ClosureCompressor - sprockets-2.11.3 Documentation

# class Sprockets::ClosureCompressor

### Public Class Methods

engine_initialized?() click to toggle source

    # File lib/sprockets/closure_compressor.rb, line 7
    def self.engine_initialized?
      defined?(::Closure::Compiler)
    end

### Public Instance Methods

evaluate(context, locals, &block) click to toggle source

    # File lib/sprockets/closure_compressor.rb, line 18
    def evaluate(context, locals, &block)
      Closure::Compiler.new.compile(data)
    end

initialize_engine() click to toggle source

    # File lib/sprockets/closure_compressor.rb, line 11
    def initialize_engine
      require_template_library 'closure-compiler'
    end

prepare() click to toggle source

    # File lib/sprockets/closure_compressor.rb, line 15
    def prepare
    end