Module: Ehbrs::Videos::Unsupported::File::Fix

Included in:
Ehbrs::Videos::Unsupported::File
Defined in:
lib/ehbrs/videos/unsupported/file/fix.rb

Instance Method Summary collapse

Instance Method Details

#check_fixObject



12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/ehbrs/videos/unsupported/file/fix.rb', line 12

def check_fix
  return unless options.fetch(:fix)

  if fix_blocks.any?
    infom '  * Cannot fix:'
    fix_blocks.each do |fb|
      infom "    * #{fb.check.check_name}"
    end
  else
    infom '  * Fixing...'
    infom "  * Fixed in: \"#{fix}\""
  end
end