Class: EhbrsRubyUtils::Videos::Subtitles::Sanitize
- Inherits:
-
Fs::ToFileFormat
- Object
- Fs::ToFileFormat
- EhbrsRubyUtils::Videos::Subtitles::Sanitize
- Defined in:
- lib/ehbrs_ruby_utils/videos/subtitles/sanitize.rb,
lib/ehbrs_ruby_utils/videos/subtitles/sanitize/content_sanitizer.rb,
lib/ehbrs_ruby_utils/videos/subtitles/sanitize/with_term_matcher.rb,
lib/ehbrs_ruby_utils/videos/subtitles/sanitize/with_pattern_matcher.rb
Defined Under Namespace
Classes: ContentSanitizer, WithPatternMatcher, WithTermMatcher
Constant Summary
Constants inherited from Fs::ToFileFormat
Fs::ToFileFormat::TEXT_MIME_TYPES
Instance Method Summary collapse
Methods inherited from Fs::ToFileFormat
convert_self, convert_to_file, convert_to_string
Instance Method Details
#run ⇒ Object
11 12 13 14 |
# File 'lib/ehbrs_ruby_utils/videos/subtitles/sanitize.rb', line 11 def run sanitize_content convert_to_windows_ptbr end |
#subtitle? ⇒ Boolean
16 17 18 |
# File 'lib/ehbrs_ruby_utils/videos/subtitles/sanitize.rb', line 16 def subtitle? text? && file.extname == '.srt' end |