Module: GHtml2Pdf

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

Overview

Main entry point for GHtml2Pdf.

Defined Under Namespace

Classes: Application, ArgumentParser, MissingArgument

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.run(argv) ⇒ Object

Run the application.

Parameters:

  • argv (Array)

    The command line arguments



9
10
11
12
13
14
15
# File 'lib/ghtml2pdf.rb', line 9

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