Class: Lydown::Translation::Ripple::KeySignature::Mode

Inherits:
Root
  • Object
show all
Defined in:
lib/lydown/translation/ripple/nodes.rb

Instance Method Summary collapse

Methods inherited from Root

#_translate, #check_line_break, #source_line

Instance Method Details

#translate(signature, opts) ⇒ Object



132
133
134
135
136
# File 'lib/lydown/translation/ripple/nodes.rb', line 132

def translate(signature, opts)
  if text_value =~ /(major|minor)/
    signature[:mode] = $1
  end
end