Module: Xmi::ParserPipeline::Steps::BuildIndex

Defined in:
lib/xmi/parser_pipeline.rb

Class Method Summary collapse

Class Method Details

.call(ctx) ⇒ Object



67
68
69
70
71
72
# File 'lib/xmi/parser_pipeline.rb', line 67

def self.call(ctx)
  # Only the Root hierarchy carries an index; custom model
  # classes parsed through the pipeline are left alone.
  ctx[:root].build_index if ctx[:root].is_a?(::Xmi::Root)
  ctx
end