class Mailtime::NullTemplate
Attributes
content[R]
id[R]
Public Class Methods
new(mail)
click to toggle source
# File lib/mailtime/renderers/null_template.rb, line 5 def initialize(mail) @id = nil @content = mail.body.raw_source end
Public Instance Methods
mail_layout()
click to toggle source
# File lib/mailtime/renderers/null_template.rb, line 10 def mail_layout NullLayout.new end
render(mail)
click to toggle source
doesn’t do anything since we already know the mail.
# File lib/mailtime/renderers/null_template.rb, line 19 def render(mail) @content end
renderer()
click to toggle source
# File lib/mailtime/renderers/null_template.rb, line 14 def renderer Mailtime::Renderers::ErbRenderer end