compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/sass_extensions/functions/selectors.rb
def append_selector(selector, to_append)
    ancestors = selector.value.split(COMMA_SEPARATOR)
    descendants = to_append.value.split(COMMA_SEPARATOR)
    nested = ancestors.map{|a| descendants.map{|d| "#{a}#{d}"}.join(", ")}.join(", ")
    Sass::Script::String.new(nested)
  end
# Permute two selectors, the first may be comma delimited.
# The end result is a new selector that is the equivalent of nesting the second
# selector under the first one in a sass file and preceding it with an &.
# To illustrate, the following mixins are equivalent:
# =mixin-a(!selector, !to_append)
#   #{!selector}
#     &#{!to_append}
#       width: 2px
# =mixin-b(!selector, !to_append)
#   #{append_selector(!selector, !to_append)}
#     width: 2px
Permute two selectors, the first may be comma delimited.
The end result is a new selector that is the equivalent of nesting the second
selector under the first one in a sass file and preceding it with an &.
Permute two selectors the first may be comma delimited . The end result is a new selector that is the equivalent of nesting the second selector under the first one in a sass file and preceding it with an & .
def append_selector(selector, to_append)
    ancestors = selector.value.split(COMMA_SEPARATOR)
    descendants = to_append.value.split(COMMA_SEPARATOR)
    nested = ancestors.map{|a| descendants.map{|d| "#{a}#{d}"}.join(", ")}.join(", ")
    Sass::Script::String.new(nested)
  end
def append_selector ( selector , to_append ) ancestors = selector . value . split ( COMMA_SEPARATOR ) descendants = to_append . value . split ( COMMA_SEPARATOR ) nested = ancestors . map { | a | descendants . map { | d | "#{a}#{d}" } . join ( ", " ) } . join ( ", " ) Sass :: Script :: String . new ( nested ) end
Permute two selectors, the first may be comma delimited.
Permute two selectors the first may be comma delimited .
selector
to_append