compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/sass_extensions/functions/sprites.rb
# Returns the width of the generated sprite map
Returns the width of the generated sprite map
Returns the width of the generated sprite map
def sprite_width(map, sprite=nil)
    verify_map(map, 'sprite-width')
    file = if sprite
      map.image_for(sprite).file
    else
      map.filename
    end
    width, _ = image_dimensions(file)
    Sass::Script::Number.new(width, ["px"])
  end
def sprite_width ( map , sprite = nil ) verify_map ( map , 'sprite-width' ) file = if sprite map . image_for ( sprite ) . file else map . filename end width , _ = image_dimensions ( file ) Sass :: Script :: Number . new ( width , [ "px" ] ) end
Returns the width of the generated sprite map
Returns the width of the generated sprite map
map
sprite