Class: Logaling::Command::Renderers::TermCsvRenderer

Inherits:
TermRenderer
  • Object
show all
Defined in:
lib/logaling/command/renderers.rb

Instance Method Summary collapse

Methods inherited from TermRenderer

#glossary_name, #initialize, #note, #source_term, #target_term

Constructor Details

This class inherits a constructor from Logaling::Command::Renderers::TermRenderer

Instance Method Details

#render(output) ⇒ Object



128
129
130
131
132
# File 'lib/logaling/command/renderers.rb', line 128

def render(output)
  items = [source_term, target_term, note,
           @config.source_language, @config.target_language, glossary_name]
  output.print(CSV.generate {|csv| csv << items})
end