Sha256: 65d736e2a7abfadb51191074685eb3f642171f395b6eaf0aea97c1b52e5277c9

Contents?: true

Size: 293 Bytes

Versions: 19

Compression:

Stored size: 293 Bytes

Contents

module InlineSvg
  class FindsAssetPaths
    def self.by_filename(filename)
      asset = configured_asset_finder.find_asset(filename)
      asset.try(:pathname) || asset.try(:filename)
    end

    def self.configured_asset_finder
      InlineSvg.configuration.asset_finder
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
inline_svg-1.6.0 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.5.2 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.5.1 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.5.0 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.4.0 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.3.1 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.3.0 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.2.3 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.2.2 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.2.1 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.2.0 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.1.0 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.0.1 lib/inline_svg/finds_asset_paths.rb
inline_svg-1.0.0 lib/inline_svg/finds_asset_paths.rb
inline_svg-0.12.1 lib/inline_svg/finds_asset_paths.rb
inline_svg-0.12.0 lib/inline_svg/finds_asset_paths.rb
inline_svg-0.11.1 lib/inline_svg/finds_asset_paths.rb
inline_svg-0.11.0 lib/inline_svg/finds_asset_paths.rb
inline_svg-0.10.0 lib/inline_svg/finds_asset_paths.rb