Class: Lydown::Parsing::Note

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

Defined Under Namespace

Modules: AccidentalFlag, Expression, Head, Octave

Instance Method Summary collapse

Methods inherited from Root

#initialize

Methods included from RootMethods

#_to_stream, #add_event, #each_child, #event_hash

Constructor Details

This class inherits a constructor from Lydown::Parsing::Root

Instance Method Details

#to_stream(stream, opts) ⇒ Object



154
155
156
157
158
159
160
# File 'lib/lydown/parsing/nodes.rb', line 154

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