add layout and class accessor and test

This commit is contained in:
Torsten Ruger
2015-11-07 19:38:52 +02:00
parent 484e2d19d4
commit 7523bac80a
4 changed files with 20 additions and 3 deletions

View File

@ -145,7 +145,7 @@ module Soml
end
def self.load_parfait
["object"].each do |o|
["layout","object"].each do |o|
str = File.open(File.expand_path("parfait/#{o}.soml", File.dirname(__FILE__))).read
syntax = Parser::Salama.new.parse_with_debug(str)
parts = Parser::Transform.new.apply(syntax)