Class: Shift::ClosureCompiler

Inherits:
Identity
  • Object
show all
Defined in:
lib/shift/c/closure_compiler.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Identity

available?, default, #initialize, instructions, new, #process, #read, require_libs

Constructor Details

This class inherits a constructor from Shift::Identity

Class Method Details

.compiler_classObject



10
11
12
# File 'lib/shift/c/closure_compiler.rb', line 10

def self.compiler_class
  Closure::Compiler
end

.gem_dependenciesObject



6
7
8
# File 'lib/shift/c/closure_compiler.rb', line 6

def self.gem_dependencies
  %w{closure-compiler}
end

Instance Method Details

#process_plain(str) ⇒ Object



14
15
16
# File 'lib/shift/c/closure_compiler.rb', line 14

def process_plain(str)
  @engine.compile(str)
end