Method: EideticPDF::PdfObjects::PdfDictionary#to_s

Defined in:
lib/epdfo.rb

#to_sObject



294
295
296
297
298
299
# File 'lib/epdfo.rb', line 294

def to_s
  s = "<<\n"
  # Sort the results consistently to be test-friendly.
  s << @hash.keys.sort { |a,b| a.to_s <=> b.to_s }.map { |key| "#{key}#{@hash[key]}\n" }.join
  s << ">>\n"
end