Module: Lydown::Parsing::Command

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

Defined Under Namespace

Modules: Argument, Key

Constant Summary collapse

SETTING_KEYS =
%w{time key clef}

Instance Method Summary collapse

Methods included from Root

#_to_stream, #event_hash

Instance Method Details

#to_stream(stream, opts) ⇒ Object



326
327
328
329
330
331
332
333
# File 'lib/lydown/parsing/nodes.rb', line 326

def to_stream(stream, opts)
  cmd = event_hash(stream, opts, {
    type: :command, raw: text_value
  })
  cmd[:once] = true if text_value =~ /^\\\!/
  _to_stream(self, cmd, opts)
  stream << cmd
end