# File lib/compass/sass_extensions/sprites/sprite_map.rb, line 26 def self.relative_name(sprite) sprite = File.expand_path(sprite) Compass.configuration.sprite_load_path.each do |path| path_with_slash = "#{File.expand_path(path)}/" if sprite.include?(path_with_slash) return sprite.gsub(path_with_slash, '') end end end