Sha256: 2a12a1523a75b12fc12dd53fba8a435b01a19e62c1ed68c5d3d6723972d51c73
Contents?: true
Size: 338 Bytes
Versions: 41
Compression:
Stored size: 338 Bytes
Contents
module InlineSvg class AssetFile class FileNotFound < IOError; end UNREADABLE_PATH = '' def self.named(filename) asset_path = FindsAssetPaths.by_filename(filename) File.read(asset_path || UNREADABLE_PATH) rescue Errno::ENOENT raise FileNotFound.new("Asset not found: #{asset_path}") end end end
Version data entries
41 entries across 41 versions & 2 rubygems