Sha256: d652cea83317600664cfa0809f4e69e32ebb7f829e076d07df653691a445a93a
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
require "filesize" require "cgi" require "ostruct" module EmlToPdfExt class MetadataContext < OpenStruct def config EmlToPdfExt.configuration end def format_attachment_size(attachment) Filesize.from("#{attachment.body.decoded.size} B").pretty end def format_date(date) config.format_date(date) end def html_escape(str) CGI.escapeHTML(str) end def get_binding binding end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eml_to_pdf_ext-0.6.1 | lib/eml_to_pdf_ext/metadata_context.rb |
eml_to_pdf_ext-0.6.0 | lib/eml_to_pdf_ext/metadata_context.rb |