Method: DOC#clean

Defined in:
lib/run.rb

#clean(*filename) ⇒ Object



78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/run.rb', line 78

def clean(*filename)

  filename.each do |current_file|

    # Skip non-pdf documents
    ! File.extname(current_file).match(/\.pdf/) ? next : ''

    pdfdoc      = Pdfmdclean.new current_file
    pdfdoc.tags = options[:tags]
    pdfdoc.run

    # Unset
    pdfdoc      = ''

  end
end