check the file has a document ID
Arguments: none
Usage:
class MyPreflight include Preflight::Profile rule Preflight::Rules::DocumentId end
19 20 21 22 23 24 25
# File 'lib/preflight/rules/document_id.rb', line 19 def check_hash(ohash) if ohash.trailer[:ID].nil? [Issue.new("Document ID missing", self)] else [] end end