Module: EhbrsRubyUtils::Videos2::Unsupported::CheckSupport

Included in:
File, Track
Defined in:
lib/ehbrs_ruby_utils/videos2/unsupported/check_support.rb

Instance Method Summary collapse

Instance Method Details

#aggressions_banner(title) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'lib/ehbrs_ruby_utils/videos2/unsupported/check_support.rb', line 15

def aggressions_banner(title)
  return if passed?

  info title
  pad_speaker do
    unpassed_checks.each do |u|
      info "* #{u.message}"
    end
  end
end

#ffmpeg_fix_argsObject



26
27
28
29
30
# File 'lib/ehbrs_ruby_utils/videos2/unsupported/check_support.rb', line 26

def ffmpeg_fix_args
  unpassed_checks.flat_map do |check|
    check.check.fix.if_present([]) { |v| v.ffmpeg_args(self) }
  end
end

#passed?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/ehbrs_ruby_utils/videos2/unsupported/check_support.rb', line 32

def passed?
  unpassed_checks.none?
end