From 7454e522a5dd41a2cc107daf6eaa4171d01c0984 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Sun, 12 Jun 2011 00:52:36 -0400 Subject: [PATCH] engine abstract --- .../sass_extensions/sprites/engines.rb | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lib/compass/sass_extensions/sprites/engines.rb b/lib/compass/sass_extensions/sprites/engines.rb index 26a73260..1a3daee3 100644 --- a/lib/compass/sass_extensions/sprites/engines.rb +++ b/lib/compass/sass_extensions/sprites/engines.rb @@ -1 +1,24 @@ +module Compass + module SassExtensions + module Sprites + class Engine + attr_accessor :width, :height, :images + def initialize(width, height, images) + @width, @height, @images = width, height, images + end + + def construct_sprite + raise ::Compass::Error, "You must impliment construct_sprite" + end + + def save(filename) + raise ::Compass::Error, "You must impliment save(filename)" + end + + end + end + end +end + + require 'compass/sass_extensions/sprites/engines/chunky_png_engine' \ No newline at end of file