Class: Smartdict::Formats::AbstractFormat

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/smartdict/formats/abstract_format.rb

Direct Known Subclasses

Fb2Format, TextColorFormat

Class Method Summary collapse

Class Method Details

.format_list(translations) ⇒ String

Parameters:

Returns:

  • (String)


18
19
20
# File 'lib/smartdict/formats/abstract_format.rb', line 18

def self.format_list(translations)
  instance.format_list(translations)
end

.format_translation(translation) ⇒ String

Parameters:

Returns:

  • (String)


12
13
14
# File 'lib/smartdict/formats/abstract_format.rb', line 12

def self.format_translation(translation)
  instance.format_translation(translation)
end

.set_description(description) ⇒ Object



6
7
8
# File 'lib/smartdict/formats/abstract_format.rb', line 6

def self.set_description(description)
  self.description = description
end