Class: Lydown::Parsing::Repeat::Volta

Inherits:
Lydown::Parsing::Root show all
Defined in:
lib/lydown/parsing/nodes.rb

Instance Method Summary collapse

Methods inherited from Lydown::Parsing::Root

#initialize

Methods included from Lydown::Parsing::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



435
436
437
438
439
440
# File 'lib/lydown/parsing/nodes.rb', line 435

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