lib/architect/parser.rb
# [diagram] String containing yUML markup
# Returns list of classes and list of associations in diagram
[diagram] String containing yUML markup
Returns list of classes and list of associations in diagram
[ diagram ] String containing yUML markup Returns list of classes and list of associations in diagram
def parse(diagram)
      elements = []
      statements = get_statements(diagram)
      statements.each do |statement|
        new_elements = parse_statement(statement)
        elements = elements + new_elements
      end
      return elements
    end
def parse ( diagram ) elements = [ ] statements = get_statements ( diagram ) statements . each do | statement | new_elements = parse_statement ( statement ) elements = elements + new_elements end return elements end
[diagram] String containing yUML markup
Returns list of classes and list of associations in diagram
[ diagram ] String containing yUML markup Returns list of classes and list of associations in diagram
diagram
<not_specific>