Module: Lydown::Parsing::Note

Includes:
Root
Defined in:
lib/lydown/parsing/nodes.rb

Defined Under Namespace

Modules: AccidentalFlag, Expression, Head, Octave

Instance Method Summary collapse

Methods included from Root

#_to_stream, #event_hash

Instance Method Details

#to_stream(stream, opts) ⇒ Object



131
132
133
134
135
136
137
# File 'lib/lydown/parsing/nodes.rb', line 131

def to_stream(stream, opts)
  note = event_hash(stream, opts, {
    type: :note, raw: text_value
  })
  _to_stream(self, note, opts)
  stream << note
end