Class: Pdfh::RunOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/pdfh/models/run_options.rb

Overview

Runtime options for the application

Instance Method Summary collapse

Constructor Details

#initialize(verbose: false, dry: false) ⇒ RunOptions

Parameters:

  • verbose (Boolean) (defaults to: false)
  • dry (Boolean) (defaults to: false)


9
10
11
12
# File 'lib/pdfh/models/run_options.rb', line 9

def initialize(verbose: false, dry: false)
  @verbose = verbose
  @dry = dry
end

Instance Method Details

#dry?Boolean

Returns:

  • (Boolean)


18
# File 'lib/pdfh/models/run_options.rb', line 18

def dry? = @dry

#verbose?Boolean

Returns:

  • (Boolean)


15
# File 'lib/pdfh/models/run_options.rb', line 15

def verbose? = @verbose