Class: GridifyPdf::Options
- Inherits:
-
Struct
- Object
- Struct
- GridifyPdf::Options
- Defined in:
- lib/gridify_pdf/options.rb
Instance Attribute Summary collapse
-
#cell_width ⇒ Object
Returns the value of attribute cell_width.
-
#input ⇒ Object
Returns the value of attribute input.
-
#open_after_gridification ⇒ Object
Returns the value of attribute open_after_gridification.
-
#output ⇒ Object
Returns the value of attribute output.
Class Method Summary collapse
Instance Attribute Details
#cell_width ⇒ Object
Returns the value of attribute cell_width
4 5 6 |
# File 'lib/gridify_pdf/options.rb', line 4 def cell_width @cell_width end |
#input ⇒ Object
Returns the value of attribute input
4 5 6 |
# File 'lib/gridify_pdf/options.rb', line 4 def input @input end |
#open_after_gridification ⇒ Object
Returns the value of attribute open_after_gridification
4 5 6 |
# File 'lib/gridify_pdf/options.rb', line 4 def open_after_gridification @open_after_gridification end |
#output ⇒ Object
Returns the value of attribute 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.( input: STDIN, output: STDOUT, cell_width: 50, open_after_gridification: false ) self.new(input:, output:, cell_width:, open_after_gridification:) end |