Class: MIMEBuilder::Text
- Inherits:
-
Object
- Object
- MIMEBuilder::Text
- Defined in:
- lib/mime_builder/text.rb
Instance Attribute Summary collapse
-
#mime ⇒ Object
Returns the value of attribute mime.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, opts = {}) ⇒ Text
constructor
A new instance of Text.
Constructor Details
#initialize(text, opts = {}) ⇒ Text
Returns a new instance of Text.
8 9 10 11 12 13 |
# File 'lib/mime_builder/text.rb', line 8 def initialize(text, opts = {}) @text = text @mime = MIME::Text.new(text, 'plain') @mime.headers.delete('Content-Id') \ if opts.key?(:content_id_disable) && opts[:content_id_disable] end |
Instance Attribute Details
#mime ⇒ Object
Returns the value of attribute mime.
5 6 7 |
# File 'lib/mime_builder/text.rb', line 5 def mime @mime end |
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/mime_builder/text.rb', line 6 def text @text end |