Parent

Class/Module Index [+]

Quicksearch

Compass::SassExtensions::Sprites::Layout::SpriteLayout

Attributes

height[RW]
images[R]
options[R]
width[RW]

Public Class Methods

new(images, kwargs={}) click to toggle source
# File lib/compass/sass_extensions/sprites/layout.rb, line 11
def initialize(images, kwargs={})
  @images  = images
  @options = kwargs
  @height  = 0
  @width   = 0
  
  layout!
end

Public Instance Methods

layout!() click to toggle source
# File lib/compass/sass_extensions/sprites/layout.rb, line 20
def layout!
  raise Compass::SpriteException, "You must impliment layout!"
end
properties() click to toggle source
# File lib/compass/sass_extensions/sprites/layout.rb, line 24
def properties
  if @width.zero?
    raise Compass::SpriteException, "You must set the width fetching the properties"
  end
  if @height.zero?
    raise Compass::SpriteException, "You must set the height fetching the properties"
  end

  [@images, @width, @height]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.