# File die.rb, line 89 def parse_secondary(cast, elora) entry = cast re_order = Regexp.new(/\s+@(tag|content-a..z|content-z..a)@\s+/, Regexp::IGNORECASE) re_closure = Regexp.new(/\s+\+(inclusive|exclusive)\+\s+/, Regexp::IGNORECASE) re_option = Regexp.new(/\s+\?(.*)\?\s+/) re_collection = Regexp.new(/\s+\!(.*)\!\s+/) re_track = Regexp.new(/\s+\*(yes|true)\*\s+/, Regexp::IGNORECASE) md = re_order.match(entry) if md and elora.is_a?(REXML::Element) contains = [] elora.elements.each do |el| contains << el.name end @order = [ md[1].strip, contains ] end md = re_closure.match(entry) if md and elora.is_a?(REXML::Element) contains = [] elora.elements.each do |el| contains << el.name end @closure = [ md[1].strip, contains ] end md = re_option.match(entry) @option = md[1].strip.split(',') if md md = re_collection.match(entry) @collection = md[1].strip if md md = re_track.match(entry) @track = true if md end