Class: Lydown::Translation::Ripple::FullRest
- Inherits:
-
Root
- Object
- Treetop::Runtime::SyntaxNode
- Root
- Lydown::Translation::Ripple::FullRest
- 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(stream, opts) ⇒ Object
148 149 150 151 152 153 154 155 |
# File 'lib/lydown/translation/ripple/nodes.rb', line 148 def translate(stream, opts) check_line_break(stream, opts) if text_value =~ /R[\d]+\*(\d+)/ stream << "R*#{$1} " else stream << "R " end end |