Module: Paperback

Defined in:
lib/paperback.rb,
lib/paperback/cli.rb,
lib/paperback/version.rb,
lib/paperback/document.rb,
lib/paperback/preparer.rb

Overview

Main class for creating and rendering PDFs

Defined Under Namespace

Modules: CLI Classes: Document, Preparer

Constant Summary collapse

VERSION =

version string

'0.0.3'

Class Method Summary collapse

Class Method Details

.class_log(klass, stream = STDERR) ⇒ Object


13
14
15
16
17
18
# File 'lib/paperback.rb', line 13

def self.class_log(klass, stream=STDERR)
  log = Logger.new(stream)
  log.progname = klass.name
  log.level = log_level
  log
end

.logObject


5
6
7
8
9
10
11
# File 'lib/paperback.rb', line 5

def self.log
  return @log if @log
  @log = Logger.new(STDERR)
  @log.progname = self.name
  @log.level = log_level
  @log
end

.log_levelObject


20
21
22
# File 'lib/paperback.rb', line 20

def self.log_level
  @log_level ||= Logger::INFO
end

.log_level=(val) ⇒ Object


24
25
26
# File 'lib/paperback.rb', line 24

def self.log_level=(val)
  @log_level = val
end