Class: Sphere::Backends::Closure

Inherits:
Base
  • Object
show all
Defined in:
lib/sphere/backends/closure.rb

Instance Attribute Summary

Attributes inherited from Base

#content

Class Method Summary collapse

Methods inherited from Base

#compressed, #initialize

Constructor Details

This class inherits a constructor from Sphere::Backends::Base

Class Method Details

.default_optionsObject



9
10
11
12
13
# File 'lib/sphere/backends/closure.rb', line 9

def default_options
  { :compilation_level  => 'SIMPLE_OPTIMIZATIONS',
    :output_format      => 'text',
    :output_info        => 'compiled_code' }
end

.uriObject



15
16
17
# File 'lib/sphere/backends/closure.rb', line 15

def uri
  @uri ||= URI.parse('http://closure-compiler.appspot.com/compile')
end