class LetterOpener::MailWithIso2022Jp
Public Instance Methods
[](key)
click to toggle source
Calls superclass method
# File lib/letter_opener/mail_with_iso_2022_jp.rb, line 25 def [] key Array(super).map { |f| PlainField.new(f.name, Iso2022JpToUtf8.decode(f.value), f.charset) } end
body()
click to toggle source
Calls superclass method
# File lib/letter_opener/mail_with_iso_2022_jp.rb, line 9 def body Mail::Body.new(super.raw_source.encode("UTF-8", "ISO-2022-JP")) end
html_part(&block)
click to toggle source
Calls superclass method
# File lib/letter_opener/mail_with_iso_2022_jp.rb, line 13 def html_part &block if part = super MailWithIso2022Jp.new(part) end end
subject()
click to toggle source
Calls superclass method
# File lib/letter_opener/mail_with_iso_2022_jp.rb, line 5 def subject Iso2022JpToUtf8.decode(super) end
text_part(&block)
click to toggle source
Calls superclass method
# File lib/letter_opener/mail_with_iso_2022_jp.rb, line 19 def text_part &block if part = super MailWithIso2022Jp.new(part) end end