Class: Gabc::ScoreNode

Inherits:
SyntaxNode
  • Object
show all
Defined in:
lib/lygre/gabcsemantics.rb

Overview

root node

Instance Method Summary collapse

Instance Method Details

#create_scoreObject

creates and returns a GabcScore from the syntax tree



27
28
29
30
31
32
# File 'lib/lygre/gabcsemantics.rb', line 27

def create_score
  return GabcScore.new do |s|
    s.header = header.to_hash
    s.music = body.create_music
  end
end