Module: Lydown::Translation

Defined in:
lib/lydown/translation.rb

Defined Under Namespace

Modules: Ripple

Class Method Summary collapse

Class Method Details

.process(source) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/lydown/translation.rb', line 3

def self.process(source)
  output = ''
  if source[:ripple]
    output << RippleParser.translate(source[:ripple], source)
  end
  if source[:lyrics]
    output << "\n=lyrics\n#{source[:lyrics]}"
  end
  output
end