Module: PDFDirectPrint

Defined in:
lib/pdfdprint.rb,
lib/pdfdprint/version.rb,
lib/pdfdprint/raw_print.rb,
lib/pdfdprint/command_line.rb

Overview

PDF Direct Print main module used for name spacing

Defined Under Namespace

Classes: CommandLine, RawPrint

Constant Summary collapse

VERSION =
'0.1.4'

Class Method Summary collapse

Class Method Details

.runObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/pdfdprint.rb', line 7

def self.run
  cl = CommandLine.new
  cl.parse_options
  cl.validate_options

  if File.directory?(ARGV[0])
    cl.process_directory
  elsif File.file?(ARGV[0])
    cl.process_file
  end
end