class EmlToPdf::MetadataContext
Public Instance Methods
config()
click to toggle source
# File lib/eml_to_pdf/metadata_context.rb, line 7 def config EmlToPdf.configuration end
format_attachment_size(attachment)
click to toggle source
# File lib/eml_to_pdf/metadata_context.rb, line 11 def format_attachment_size(attachment) Filesize.from("#{attachment.body.decoded.size} B").pretty end
format_date(date)
click to toggle source
# File lib/eml_to_pdf/metadata_context.rb, line 15 def format_date(date) config.format_date(date) end
get_binding()
click to toggle source
# File lib/eml_to_pdf/metadata_context.rb, line 23 def get_binding binding end
html_escape(str)
click to toggle source
# File lib/eml_to_pdf/metadata_context.rb, line 19 def html_escape(str) CGI.escapeHTML(str) end