Module: JasperCommandLine

Defined in:
lib/jasper-command-line/jasper.rb,
lib/jasper-command-line.rb,
lib/jasper-command-line/version.rb,
lib/jasper-command-line/prawn-js.rb,
lib/jasper-command-line/command_line.rb

Overview

js.rb : Implements embeddable Javascript support for PDF

Copyright March 2009, James Healy. All Rights Reserved.

This is free software. Please see the LICENSE file for details.

Defined Under Namespace

Modules: Jasper, Prawn Classes: CommandLine

Constant Summary collapse

VERSION =
"0.4.1"

Class Method Summary collapse

Class Method Details

.ghostscript_available?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/jasper-command-line.rb', line 28

def self.ghostscript_available?
  !`which gs`.empty?
end

.loggerLogger

Get jasper-command-line logger.

Returns:

  • (Logger)


21
22
23
24
25
26
# File 'lib/jasper-command-line.rb', line 21

def self.logger
  return @logger if @logger
  logger = Logger.new(STDOUT)
  logger.level = Logger::INFO
  @logger = logger
end

.logger=(log) ⇒ Object



14
15
16
# File 'lib/jasper-command-line.rb', line 14

def self.logger=(log)
  @logger = log
end