Module: Xmi::ParserPipeline::Steps::ParseXml
- Defined in:
- lib/xmi/parser_pipeline.rb
Class Method Summary collapse
Class Method Details
.call(ctx) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/xmi/parser_pipeline.rb', line 53 def self.call(ctx) root_class = ctx[:root_class] ctx[:root] = if ctx[:register] root_class.from_xml(ctx[:xml], register: ctx[:register]) else VersionRegistry.parse_with_detected_version( ctx[:xml], root_class ) end ctx end |