Module: GHtml2Pdf

Defined in:
lib/ghtml2pdf.rb,
lib/ghtml2pdf/version.rb,
lib/ghtml2pdf/application.rb,
lib/ghtml2pdf/print_settings.rb,
lib/ghtml2pdf/argument_parser.rb

Overview

Main entry point for GHtml2Pdf.

Defined Under Namespace

Classes: Application, ArgumentError, ArgumentParser, PrintSettings

Constant Summary collapse

VERSION =
"0.5.1"

Class Method Summary collapse

Class Method Details

.run(argv) ⇒ Object

Run the application.

Parameters:

  • argv (Array)

    The command line arguments



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

def self.run(argv)
  Gtk.init
  GHtml2Pdf::Application.new(argv).run
rescue GHtml2Pdf::ArgumentError => e
  warn e.message
  exit 1
end