Class: Lydown::Translation::Ripple::KeySignature
- Inherits:
-
Root
- Object
- Treetop::Runtime::SyntaxNode
- Root
- Lydown::Translation::Ripple::KeySignature
- Defined in:
- lib/lydown/translation/ripple/nodes.rb
Defined Under Namespace
Classes: Mode
Instance Method Summary collapse
Methods inherited from Root
#_translate, #check_line_break, #source_line
Instance Method Details
#translate(stream, opts) ⇒ Object
124 125 126 127 128 129 |
# File 'lib/lydown/translation/ripple/nodes.rb', line 124 def translate(stream, opts) signature = {} _translate(self, signature, opts) opts[:key] = "#{signature[:head]} #{signature[:mode]}".strip stream << "- key: #{opts[:key]}\n" end |