Method: Mail::Message#decoded
- Defined in:
- lib/mail/message.rb
#decoded ⇒ Object
1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 |
# File 'lib/mail/message.rb', line 1882 def decoded case when self.text? decode_body_as_text when self. decode_body when !self.multipart? body.decoded else raise NoMethodError, 'Can not decode an entire message, try calling #decoded on the various fields and body or parts if it is a multipart message.' end end |