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

Instance Method Details

#to_stream(stream) ⇒ Object



263
264
265
266
267
268
# File 'lib/lydown/parsing/nodes.rb', line 263

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