Method: Postdoc::PrintSettings#initialize

Defined in:
lib/postdoc/print_settings.rb

#initialize(header_template: '', footer_template: '', landscape: false, print_background: true, margin_top: 1, margin_bottom: 1, margin_left: 1, margin_right: 1, slow_pc: false) ⇒ PrintSettings

Returns a new instance of PrintSettings.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/postdoc/print_settings.rb', line 8

def initialize(
    header_template: '',
    footer_template: '',
    landscape: false,
    print_background: true,
    margin_top: 1,
    margin_bottom: 1,
    margin_left: 1,
    margin_right: 1,
    slow_pc: false
)
  @header_template = header_template
  @footer_template = footer_template
  @landscape = landscape
  @print_background = print_background
  @margin_top = margin_top
  @margin_bottom = margin_bottom
  @margin_left = margin_left
  @margin_right = margin_right
  @slow_pc = slow_pc
end