Class: Maildis::Template
- Inherits:
-
Object
- Object
- Maildis::Template
- Defined in:
- lib/maildis/template.rb
Constant Summary collapse
- HTML =
"html"
- HTML_EXT =
".html"
- PLAIN =
"plain"
- PLAIN_EXT =
".txt"
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, content) ⇒ Template
constructor
A new instance of Template.
Constructor Details
#initialize(type, content) ⇒ Template
Returns a new instance of Template.
11 12 13 14 |
# File 'lib/maildis/template.rb', line 11 def initialize(type, content) @type = type @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
9 10 11 |
# File 'lib/maildis/template.rb', line 9 def content @content end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/maildis/template.rb', line 9 def type @type end |