Class: Maildis::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/maildis/template.rb

Constant Summary collapse

HTML =
"html"
HTML_EXT =
".html"
PLAIN =
"plain"
PLAIN_EXT =
".txt"

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



9
10
11
# File 'lib/maildis/template.rb', line 9

def content
  @content
end

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/maildis/template.rb', line 9

def type
  @type
end