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)
-
- (Object) canvas
Returns the value of attribute canvas.
-
- (Object) height
Returns the value of attribute height.
-
- (Object) images
Returns the value of attribute images.
-
- (Object) width
Returns the value of attribute width.
Instance Method Summary (collapse)
- - (Object) construct_sprite
-
- (Engine) initialize(width, height, images)
constructor
A new instance of Engine.
- - (Object) save(filename)
Constructor Details
- (Engine) initialize(width, height, images)
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
- (Object) canvas
Returns the value of attribute canvas
5 6 7 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 5 def canvas @canvas end |
- (Object) height
Returns the value of attribute height
5 6 7 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 5 def height @height end |
- (Object) images
Returns the value of attribute images
5 6 7 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 5 def images @images end |
- (Object) width
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
- (Object) construct_sprite
11 12 13 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 11 def construct_sprite raise ::Compass::Error, "You must impliment construct_sprite" end |
- (Object) save(filename)
15 16 17 |
# File 'lib/compass/sass_extensions/sprites/engines.rb', line 15 def save(filename) raise ::Compass::Error, "You must impliment save(filename)" end |