Module: Lydown::Parsing::DurationMacroExpression

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



293
294
295
296
297
# File 'lib/lydown/parsing/nodes.rb', line 293

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