Class: GridifyPdf::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/gridify_pdf/options.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cell_widthObject

Returns the value of attribute cell_width

Returns:

  • (Object)

    the current value of cell_width



4
5
6
# File 'lib/gridify_pdf/options.rb', line 4

def cell_width
  @cell_width
end

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



4
5
6
# File 'lib/gridify_pdf/options.rb', line 4

def input
  @input
end

#open_after_gridificationObject

Returns the value of attribute open_after_gridification

Returns:

  • (Object)

    the current value of open_after_gridification



4
5
6
# File 'lib/gridify_pdf/options.rb', line 4

def open_after_gridification
  @open_after_gridification
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



4
5
6
# File 'lib/gridify_pdf/options.rb', line 4

def output
  @output
end

Class Method Details

.build_options_with_defaults(input: STDIN, output: STDOUT, cell_width: 50, open_after_gridification: false) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/gridify_pdf/options.rb', line 11

def self.build_options_with_defaults(
  input: STDIN,
  output: STDOUT,
  cell_width: 50,
  open_after_gridification: false
)
  self.new(input:, output:, cell_width:, open_after_gridification:)
end