Module: Lydown::Parsing::Barline

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

Instance Method Summary collapse

Methods included from RootMethods

#_to_stream, #add_event, #each_child, #event_hash

Instance Method Details

#to_stream(stream, opts) ⇒ Object



346
347
348
349
350
351
# File 'lib/lydown/parsing/nodes.rb', line 346

def to_stream(stream, opts)
  stream << event_hash(stream, opts, {
    type: :barline, 
    barline: text_value
  })
end