Class: DragonflySvg::Analysers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/dragonfly_svg/analysers/base.rb

Instance Method Summary collapse

Instance Method Details

#is_svg?(content) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/dragonfly_svg/analysers/base.rb', line 6

def is_svg?(content)
  content.mime_type == DragonflySvg::SVG_MIME_TYPE
end