Module: Olyx::Guardrails::PolicyComponents::UnmatchedTransformer

Defined in:
lib/olyx/guardrails/policy/unmatched_transformer.rb

Overview

Applies a secondary transformation only outside policy spans.

Class Method Summary collapse

Class Method Details

.call(source, spans, transform) ⇒ Object



12
13
14
15
16
# File 'lib/olyx/guardrails/policy/unmatched_transformer.rb', line 12

def call(source, spans, transform)
  builder = UnmatchedSegmentBuilder.new(source, transform)
  spans.each { |span| builder.append(span) }
  builder.finish
end