compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/sass_extensions/functions/lists.rb
def compact(*args)
    sep = :comma
    if args.size == 1 && args.first.is_a?(Sass::Script::List)
      list = args.first
      args = list.value
      sep = list.separator
    end
    Sass::Script::List.new(args.reject{|a| !a.to_bool}, sep)
  end
# Returns a new list after removing any non-true values
Returns a new list after removing any non-true values
Returns a new list after removing any non - true values
def compact(*args)
    sep = :comma
    if args.size == 1 && args.first.is_a?(Sass::Script::List)
      list = args.first
      args = list.value
      sep = list.separator
    end
    Sass::Script::List.new(args.reject{|a| !a.to_bool}, sep)
  end
def compact ( * args ) sep = :comma if args . size == 1 && args . first . is_a? ( Sass :: Script :: List ) list = args . first args = list . value sep = list . separator end Sass :: Script :: List . new ( args . reject { | a | ! a . to_bool } , sep ) end
Returns a new list after removing any non-true values
Returns a new list after removing any non - true values
args