Class: MendixBridge::DocumentParser
- Inherits:
-
Object
- Object
- MendixBridge::DocumentParser
- Defined in:
- lib/mendix_bridge/document_parser.rb
Class Method Summary collapse
Class Method Details
.parse(type, description) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/mendix_bridge/document_parser.rb', line 6 def parse(type, description) mdl = description.fetch("mdl") details = case type when "constant" then parse_constant(mdl) when "javaaction" then parse_java_action(mdl) when "importmapping", "exportmapping" then parse_mapping(mdl) when "layout", "snippet" then parse_ui_document(type, mdl) when "navprofile" then (mdl) else {} end details.merge("mdl" => mdl, "parse_status" => "parsed") end |