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
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 |