Class: DecisionAgent::Dmn::Parser
- Inherits:
-
Object
- Object
- DecisionAgent::Dmn::Parser
- Defined in:
- lib/decision_agent/dmn/parser.rb
Overview
Parses DMN 1.3 XML files into Ruby model objects
Constant Summary collapse
- NAMESPACES =
{ "dmn" => "https://www.omg.org/spec/DMN/20191111/MODEL/", "dmn11" => "http://www.omg.org/spec/DMN/20151101/dmn.xsd", "dmn13" => "https://www.omg.org/spec/DMN/20191111/MODEL/" }.freeze
Instance Method Summary collapse
-
#initialize(xml_content) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(xml_content) ⇒ Parser
Returns a new instance of Parser.
18 19 20 21 22 |
# File 'lib/decision_agent/dmn/parser.rb', line 18 def initialize(xml_content) @xml_content = xml_content @doc = nil @namespace = nil end |
Instance Method Details
#parse ⇒ Object
24 25 26 27 |
# File 'lib/decision_agent/dmn/parser.rb', line 24 def parse parse_xml extract_model end |