Class: Compass::SassExtensions::Sprites::Engine
- Inherits:
-
Object
- Object
- Compass::SassExtensions::Sprites::Engine
- Defined in:
- lib/compass/sass_extensions/sprites/engines.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#canvas ⇒ Object
Returns the value of attribute canvas.
-
#height ⇒ Object
Returns the value of attribute height.
-
#images ⇒ Object
Returns the value of attribute images.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
- #construct_sprite ⇒ Object
-
#initialize(width, height, images) ⇒ Engine
constructor
A new instance of Engine.
- #save(filename) ⇒ Object
Constructor Details
#initialize(width, height, images) ⇒ Engine
Returns a new instance of Engine.
6 7 8 9 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 6 def initialize(width, height, images) @width, @height, @images = width, height, images @canvas = nil end |
Instance Attribute Details
#canvas ⇒ Object
Returns the value of attribute canvas.
5 6 7 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 5 def canvas @canvas end |
#height ⇒ Object
Returns the value of attribute height.
5 6 7 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 5 def height @height end |
#images ⇒ Object
Returns the value of attribute images.
5 6 7 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 5 def images @images end |
#width ⇒ Object
Returns the value of attribute width.
5 6 7 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 5 def width @width end |
Instance Method Details
#construct_sprite ⇒ Object
11 12 13 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 11 def construct_sprite raise ::Compass::Error, "You must implement construct_sprite" end |
#save(filename) ⇒ Object
15 16 17 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 15 def save(filename) raise ::Compass::Error, "You must implement save(filename)" end |