class Closure::Compiler

def compile_files(files)

response to a block, for streaming.
resulting JavaScript as a string or yields an IO object containing the
Takes an array of javascript file paths or a single path. Returns the
def compile_files(files)
  @options.merge!(:js => files)
  begin
    result = `#{command} 2>&1`
  rescue Exception
    raise Error, "compression failed: #{result}"
  end
  unless $?.exitstatus.zero?
    raise Error, result
  end
  yield(StringIO.new(result)) if block_given?
  result
end