Class: Sprockets::ImageCompressor::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/sprockets/image_compressor/base.rb

Direct Known Subclasses

JpgCompressor, PngCompressor

Instance Method Summary collapse

Instance Method Details

#binary_pathObject



8
9
10
11
12
13
14
15
# File 'lib/sprockets/image_compressor/base.rb', line 8

def binary_path
  @binary_path ||= begin
     try_vendored_binaries || try_system_binary or raise """
      Can't find an installed version of #{@name}, and none of the vendored binaries seem to work.
      Please install #{@name}, or open an issue on the project page at https://github.com/botandrose/sprockets-image_compressor
    """
  end
end