diff --git a/src/recipe.cr b/src/recipe.cr index b97ae12..78f1180 100644 --- a/src/recipe.cr +++ b/src/recipe.cr @@ -30,56 +30,6 @@ module FileUtils end end -# FIXME: This could probably be shorter and less stupid with a macro or two. -class SpecFileParser::StringContainer - def as_s : String - value - end - def as_a_or_s : Array(String) - # FIXME: We should probably be splitting the string around comas. - [value] - end - def as_s_or_ls : String - value - end -end - -class SpecFileParser::LongStringContainer - def as_s : String - raise "short string expected, got multiline text section" - end - def as_a_or_s : Array(String) - raise "list or string expected, got multiline text section" - end - def as_s_or_ls : String - value - end -end - -class SpecFileParser::ArrayContainer - def as_s : String - raise "string expected, got list" - end - def as_a_or_s : Array(String) - value - end - def as_s_or_ls : String - raise "string or multiline text section expected, got list" - end -end - -class SpecFileParser::SectionContainer - def as_s : String - raise "string expected, got section" - end - def as_a_or_s : Array(String) - raise "list or string expected, got section" - end - def as_s_or_ls : String - raise "string or multiline text section expected, got section" - end -end - class Package::Recipe @context : Context