Class: EhbrsRubyUtils::Videos::Subtitles::Sanitize::WithTermMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/videos/subtitles/sanitize/with_term_matcher.rb

Instance Method Summary collapse

Instance Method Details

#process(lines) ⇒ Object



13
14
15
# File 'lib/ehbrs_ruby_utils/videos/subtitles/sanitize/with_term_matcher.rb', line 13

def process(lines)
  lines.map(&:downcase).any? { |line| line.include?(term) } ? nil : lines
end