lib/compass/sass_extensions/functions/enumerate.rb in compass-edge-0.9.4 vs lib/compass/sass_extensions/functions/enumerate.rb in compass-edge-0.9.5.0

- old
+ new

@@ -1,6 +1,6 @@ module Compass::SassExtensions::Functions::Enumerate - def enumerate(prefix, from, through) - selectors = (from.value..through.value).map{|i| "#{prefix.value}-#{i}"}.join(", ") + def enumerate(prefix, from, through, separator = "-") + selectors = (from.value..through.value).map{|i| "#{prefix.value}#{separator}#{i}"}.join(", ") Sass::Script::String.new(selectors) end end \ No newline at end of file