class Pdfmdshow
Class: pdfmd.show¶ ↑
Attributes
filename[RW]
Public Class Methods
new(filename)
click to toggle source
Calls superclass method
Pdfmd::new
# File lib/pdfmd/pdfmdshow.rb, line 10 def initialize(filename) super(filename) @filename = filename end
Public Instance Methods
set_outputformat( format = 'yaml' )
click to toggle source
Define the output format for showing the metadata
# File lib/pdfmd/pdfmdshow.rb, line 23 def set_outputformat( format = 'yaml' ) format.nil? ? format = 'yaml' : '' self.log('debug',"Output format set to '#{format}'.") @@outputformat = format end
show_filename( enable = nil)
click to toggle source
Define if the filename should be visible in the output
# File lib/pdfmd/pdfmdshow.rb, line 17 def show_filename( enable = nil) @@show_filename = enable ? true : false end