Class: Yuzu::Translators::PlaintextTranslator

Inherits:
Translator show all
Defined in:
lib/yuzu/translators/plaintext.rb

Instance Method Summary collapse

Methods inherited from Translator

can_translate?, filetypes, identify_filetype, registry, translate, #translates?, translators

Instance Method Details

#extensionsObject



6
7
8
# File 'lib/yuzu/translators/plaintext.rb', line 6

def extensions
  %(txt text)
end

#translate(contents) ⇒ Object



10
11
12
# File 'lib/yuzu/translators/plaintext.rb', line 10

def translate(contents)
  contents
end