Class: DragonflyFonts::Analysers::OtsSanitize

Inherits:
Object
  • Object
show all
Defined in:
lib/dragonfly_fonts/analysers/ots_sanitize.rb

Instance Method Summary collapse

Instance Method Details

#call(content) ⇒ Object



6
7
8
9
10
11
# File 'lib/dragonfly_fonts/analysers/ots_sanitize.rb', line 6

def call(content)
  return unless content.ext
  return unless OT_SANITISE_SUPPORTED_FORMATS.include?(content.ext.downcase)

  `#{ots_sanitize_command} #{content.path} 2>&1`
end