Module: Olyx::Guardrails::Pii::ContentScrubber
- Defined in:
- lib/olyx/guardrails/pii/content_scrubber.rb
Overview
Redacts String or array-style message content.
Class Method Summary collapse
Class Method Details
.call(content) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/olyx/guardrails/pii/content_scrubber.rb', line 13 def call(content) return scrub_text(content) if content.is_a?(String) return scrub_blocks(content) if content.is_a?(Array) [content, false] end |