# File lib/compass/sass_extensions/functions/sprites.rb, line 118 def sprite_file(map, sprite) sprite = convert_sprite_name(sprite) verify_map(map, "sprite") verify_sprite(sprite) if image = map.image_for(sprite.value) image_path = Pathname.new(File.expand_path(image.file)) images_path = Pathname.new(File.expand_path(Compass.configuration.images_path)) quoted_string(image_path.relative_path_from(images_path).to_s) else missing_image!(map, sprite) end end