Class: HtmlEmailCreator::Formatters::UnknownFormatter

Inherits:
Formatter
  • Object
show all
Defined in:
lib/html_email_creator/formatters/unknown_formatter.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Formatter

#extension, #format, #id

Constructor Details

#initialize(text, settings = HtmlEmailCreator.settings) ⇒ UnknownFormatter

Returns a new instance of UnknownFormatter.



12
13
14
# File 'lib/html_email_creator/formatters/unknown_formatter.rb', line 12

def initialize(text, settings = HtmlEmailCreator.settings)
  super
end

Class Method Details

.extensionObject



4
5
6
# File 'lib/html_email_creator/formatters/unknown_formatter.rb', line 4

def self.extension
  "txt"
end

.idObject



8
9
10
# File 'lib/html_email_creator/formatters/unknown_formatter.rb', line 8

def self.id
  :unknown
end