compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/sass_extensions/functions/sprites.rb
def sprite_has_selector(map, sprite, selector)
    sprite = convert_sprite_name(sprite)
    verify_map map
    verify_sprite sprite
    unless VALID_SELECTORS.include?(selector.value)
      raise Sass::SyntaxError, "Invalid Selctor did you mean one of: #{VALID_SELECTORS.join(', ')}"
    end
    Sass::Script::Bool.new map.send(:"has_#{selector.value}?", sprite.value)
  end
# Returns boolean if sprite has the selector
Returns boolean if sprite has the selector
Returns boolean if sprite has the selector
def sprite_has_selector(map, sprite, selector)
    sprite = convert_sprite_name(sprite)
    verify_map map
    verify_sprite sprite
    unless VALID_SELECTORS.include?(selector.value)
      raise Sass::SyntaxError, "Invalid Selctor did you mean one of: #{VALID_SELECTORS.join(', ')}"
    end
    Sass::Script::Bool.new map.send(:"has_#{selector.value}?", sprite.value)
  end
def sprite_has_selector ( map , sprite , selector ) sprite = convert_sprite_name ( sprite ) verify_map map verify_sprite sprite unless VALID_SELECTORS . include? ( selector . value ) raise Sass :: SyntaxError , "Invalid Selctor did you mean one of: #{VALID_SELECTORS.join(', ')}" end Sass :: Script :: Bool . new map . send ( :" has_ #{ selector . value } ? " , sprite . value ) end
Returns boolean if sprite has the selector
Returns boolean if sprite has the selector
map
sprite
selector